-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added vPreProcess module code contained in icub23 pc.
- Loading branch information
Showing
4 changed files
with
422 additions
and
470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
project(vPreProcess) | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
set(MODULENAME vPreProcess) | ||
project(${MODULENAME}) | ||
|
||
file(GLOB source src/*.cpp) | ||
file(GLOB header include/*.h) | ||
|
||
add_executable(${PROJECT_NAME} ${source} ${header}) | ||
|
||
target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include | ||
${OpenCV_INCLUDE_DIRS}) | ||
include_directories(${PROJECT_SOURCE_DIR}/include | ||
${OpenCV_INCLUDE_DIRS} | ||
${EVENTDRIVENLIBS_INCLUDE_DIRS}) | ||
|
||
target_link_libraries(${PROJECT_NAME} PRIVATE YARP::YARP_OS | ||
YARP::YARP_init | ||
${OpenCV_LIBRARIES} | ||
ev::${EVENTDRIVEN_LIBRARY}) | ||
add_executable(${MODULENAME} ${source} ${header}) | ||
|
||
install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
target_link_libraries(${MODULENAME} ${YARP_LIBRARIES} ${OpenCV_LIBRARIES} ${EVENTDRIVEN_LIBRARIES}) | ||
|
||
yarp_install(FILES ${PROJECT_NAME}.ini | ||
DESTINATION ${EVENT-DRIVEN_CONTEXTS_INSTALL_DIR}/${CONTEXT_DIR}) | ||
install(TARGETS ${MODULENAME} DESTINATION bin) | ||
|
||
yarp_install(FILES ${MODULENAME}.ini DESTINATION ${ICUBCONTRIB_CONTEXTS_INSTALL_DIR}/${CONTEXT_DIR}) | ||
if(ADD_DOCS_TO_IDE) | ||
add_custom_target(${PROJECT_NAME}_docs SOURCES ${PROJECT_NAME}.ini ${PROJECT_NAME}.xml) | ||
add_custom_target(${MODULENAME}_docs SOURCES ${MODULENAME}.ini ${MODULENAME}.xml) | ||
endif(ADD_DOCS_TO_IDE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.