diff --git a/ControlModule/CMakeLists.txt b/ControlModule/CMakeLists.txt index ebcfc78..c876c19 100644 --- a/ControlModule/CMakeLists.txt +++ b/ControlModule/CMakeLists.txt @@ -1,7 +1,12 @@ +include_directories( ${Utils_SOURCE_DIRS}) +link_directories(${Utils_SOURCE_DIRS}) + add_library(ControlModule control_module.cpp) set_target_properties(ControlModule PROPERTIES VERSION ${PROJECT_VERSION}) target_include_directories(ControlModule PRIVATE .) +target_link_libraries( ControlModule Utils) + set(CPACK_PROJECT_NAME ${PROJECT_NAME}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) include(CPack) \ No newline at end of file diff --git a/Input/CMakeLists.txt b/Input/CMakeLists.txt index f6c1d8a..0a710a1 100644 --- a/Input/CMakeLists.txt +++ b/Input/CMakeLists.txt @@ -1,11 +1,13 @@ find_package( OpenCV REQUIRED ) -include_directories( ${OpenCV_INCLUDE_DIRS} ) - +include_directories( ${OpenCV_INCLUDE_DIRS} ${Utils_SOURCE_DIRS}) + +link_directories(${Utils_SOURCE_DIRS}) + add_library(Input input.cpp) set_target_properties(Input PROPERTIES VERSION ${PROJECT_VERSION}) target_include_directories(Input PRIVATE .) -target_link_libraries( Input ${OpenCV_LIBS}) +target_link_libraries( Input ${OpenCV_LIBS} Utils) set(CPACK_PROJECT_NAME ${PROJECT_NAME}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) diff --git a/Interpreter/CMakeLists.txt b/Interpreter/CMakeLists.txt index 74ff278..b06fa62 100644 --- a/Interpreter/CMakeLists.txt +++ b/Interpreter/CMakeLists.txt @@ -1,7 +1,12 @@ +include_directories( ${Utils_SOURCE_DIRS}) +link_directories(${Utils_SOURCE_DIRS}) + add_library(Interpreter interpreter.cpp) set_target_properties(Interpreter PROPERTIES VERSION ${PROJECT_VERSION}) target_include_directories(Interpreter PRIVATE .) +target_link_libraries( Interpreter Utils) + set(CPACK_PROJECT_NAME ${PROJECT_NAME}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) include(CPack) \ No newline at end of file diff --git a/IntersectionHandler/CMakeLists.txt b/IntersectionHandler/CMakeLists.txt index 5ffa8d4..7893a16 100644 --- a/IntersectionHandler/CMakeLists.txt +++ b/IntersectionHandler/CMakeLists.txt @@ -1,7 +1,12 @@ +include_directories( ${Utils_SOURCE_DIRS}) +link_directories(${Utils_SOURCE_DIRS}) + add_library(IntersectionHandler intersection_handler.cpp) set_target_properties(IntersectionHandler PROPERTIES VERSION ${PROJECT_VERSION}) target_include_directories(IntersectionHandler PRIVATE .) +target_link_libraries( IntersectionHandler Utils) + set(CPACK_PROJECT_NAME ${PROJECT_NAME}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) include(CPack) \ No newline at end of file