Browse Source

Link to c++ threads lib

pull/1/head
Tim Zeuner 2 years ago
parent
commit
d1341a7c8a
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      CMakeLists.txt

+ 5
- 2
CMakeLists.txt View File

cmake_minimum_required(VERSION 3.0.0)
cmake_minimum_required(VERSION 3.1.0)
project(lfr_image_processing VERSION 0.1.0) project(lfr_image_processing VERSION 0.1.0)


include(CTest) include(CTest)
enable_testing() enable_testing()


set(THREADS_PREFER_PTHREAD_FLAG ON)

find_package( OpenCV REQUIRED ) find_package( OpenCV REQUIRED )
find_package(Threads REQUIRED)


include_directories( ${OpenCV_INCLUDE_DIRS} include_directories( ${OpenCV_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}/Input ${CMAKE_CURRENT_SOURCE_DIR}/Input


add_executable(lfr_image_processing lfr.cpp autonomous_mode_main.cpp) add_executable(lfr_image_processing lfr.cpp autonomous_mode_main.cpp)


target_link_libraries( lfr_image_processing ${OpenCV_LIBS} Input Processing ControlModule Interpreter IntersectionHandler )
target_link_libraries( lfr_image_processing ${OpenCV_LIBS} Input Processing ControlModule Interpreter IntersectionHandler Threads::Threads)


set(CPACK_PROJECT_NAME ${PROJECT_NAME}) set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})

Loading…
Cancel
Save