Browse Source

Link to c++ threads lib

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

+ 5
- 2
CMakeLists.txt View File

@@ -1,10 +1,13 @@
cmake_minimum_required(VERSION 3.0.0)
cmake_minimum_required(VERSION 3.1.0)
project(lfr_image_processing VERSION 0.1.0)

include(CTest)
enable_testing()

set(THREADS_PREFER_PTHREAD_FLAG ON)

find_package( OpenCV REQUIRED )
find_package(Threads REQUIRED)

include_directories( ${OpenCV_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}/Input
@@ -35,7 +38,7 @@ target_include_directories(IntersectionHandler PRIVATE .)

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_VERSION ${PROJECT_VERSION})

Loading…
Cancel
Save