Browse Source

Link all libs to utils

pull/1/head
Tim Zeuner 2 years ago
parent
commit
cd3b613b0a

+ 5
- 0
ControlModule/CMakeLists.txt View File

include_directories( ${Utils_SOURCE_DIRS})
link_directories(${Utils_SOURCE_DIRS})

add_library(ControlModule control_module.cpp) add_library(ControlModule control_module.cpp)
set_target_properties(ControlModule PROPERTIES VERSION ${PROJECT_VERSION}) set_target_properties(ControlModule PROPERTIES VERSION ${PROJECT_VERSION})
target_include_directories(ControlModule PRIVATE .) target_include_directories(ControlModule PRIVATE .)


target_link_libraries( ControlModule Utils)

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

+ 5
- 3
Input/CMakeLists.txt View File

find_package( OpenCV REQUIRED ) 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) add_library(Input input.cpp)
set_target_properties(Input PROPERTIES VERSION ${PROJECT_VERSION}) set_target_properties(Input PROPERTIES VERSION ${PROJECT_VERSION})
target_include_directories(Input PRIVATE .) 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_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})

+ 5
- 0
Interpreter/CMakeLists.txt View File

include_directories( ${Utils_SOURCE_DIRS})
link_directories(${Utils_SOURCE_DIRS})

add_library(Interpreter interpreter.cpp) add_library(Interpreter interpreter.cpp)
set_target_properties(Interpreter PROPERTIES VERSION ${PROJECT_VERSION}) set_target_properties(Interpreter PROPERTIES VERSION ${PROJECT_VERSION})
target_include_directories(Interpreter PRIVATE .) target_include_directories(Interpreter PRIVATE .)


target_link_libraries( Interpreter Utils)

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

+ 5
- 0
IntersectionHandler/CMakeLists.txt View File

include_directories( ${Utils_SOURCE_DIRS})
link_directories(${Utils_SOURCE_DIRS})

add_library(IntersectionHandler intersection_handler.cpp) add_library(IntersectionHandler intersection_handler.cpp)
set_target_properties(IntersectionHandler PROPERTIES VERSION ${PROJECT_VERSION}) set_target_properties(IntersectionHandler PROPERTIES VERSION ${PROJECT_VERSION})
target_include_directories(IntersectionHandler PRIVATE .) target_include_directories(IntersectionHandler PRIVATE .)


target_link_libraries( IntersectionHandler Utils)

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

Loading…
Cancel
Save