51 lines
1.5 KiB
CMake
Raw Normal View History

2022-11-10 14:39:12 +01:00
cmake_minimum_required(VERSION 3.1.0)
2022-10-26 22:53:34 +02:00
project(lfr_image_processing VERSION 0.1.0)
include(CTest)
enable_testing()
2022-11-10 14:39:12 +01:00
set(THREADS_PREFER_PTHREAD_FLAG ON)
2022-10-26 22:53:34 +02:00
find_package( OpenCV REQUIRED )
2022-11-10 14:39:12 +01:00
find_package(Threads REQUIRED)
2022-11-03 08:59:26 +01:00
include_directories( ${OpenCV_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}/Input
${CMAKE_CURRENT_SOURCE_DIR}/Processing
${CMAKE_CURRENT_SOURCE_DIR}/ControlModule
${CMAKE_CURRENT_SOURCE_DIR}/Interpreter
${CMAKE_CURRENT_SOURCE_DIR}/IntersectionHandler
${CMAKE_CURRENT_SOURCE_DIR}/Utils
2022-11-03 08:59:26 +01:00
)
link_directories( ${Input_SOURCE_DIRS}
${Processing_SOURCE_DIRS}
${ControlModule_SOURCE_DIRS}
${Interpreter_SOURCE_DIRS}
${IntersectionHandler_SOURCE_DIRS}
${Utils_SOURCE_DIRS}
2022-11-03 08:59:26 +01:00
)
2022-10-30 20:01:47 +01:00
add_subdirectory(Input)
2022-11-01 14:18:02 +01:00
add_subdirectory(Processing)
2022-11-03 08:54:35 +01:00
add_subdirectory(ControlModule)
add_subdirectory(Interpreter)
add_subdirectory(IntersectionHandler)
add_subdirectory(Utils)
add_subdirectory(Spielwiese)
2022-11-03 08:54:35 +01:00
2022-10-30 20:01:47 +01:00
target_include_directories(Input PRIVATE .)
2022-11-01 14:18:02 +01:00
target_include_directories(Processing PRIVATE .)
2022-11-03 08:54:35 +01:00
target_include_directories(ControlModule PRIVATE .)
target_include_directories(Interpreter PRIVATE .)
target_include_directories(IntersectionHandler PRIVATE .)
target_include_directories(Utils PRIVATE .)
2022-10-26 22:53:34 +02:00
add_executable(lfr_image_processing lfr.cpp autonomous_mode_main.cpp)
2022-10-30 20:01:47 +01:00
target_link_libraries( lfr_image_processing ${OpenCV_LIBS} Input Processing ControlModule Interpreter IntersectionHandler Utils Threads::Threads)
2022-10-30 20:01:47 +01:00
2022-10-26 22:53:34 +02:00
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)