-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
42 lines (31 loc) · 1.21 KB
/
CMakeLists.txt
File metadata and controls
42 lines (31 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright: 2014 iCub Facility, Istituto Italiano di Tecnologia
# Author: Tanis Mar
# CopyPolicy: Released under the terms of the GNU GPL v2.0.
#
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(PROJECTNAME flowDenoiser)
PROJECT(${PROJECTNAME})
find_package(YARP)
find_package(ICUBcontrib)
list(APPEND CMAKE_MODULE_PATH ${YARP_MODULE_PATH})
list(APPEND CMAKE_MODULE_PATH ${ICUBCONTRIB_MODULE_PATH})
find_package(OpenCV)
include(YarpInstallationHelpers)
include(ICUBcontribHelpers)
include(ICUBcontribOptions)
icubcontrib_set_default_prefix()
add_definitions(${YARP_DEFINES}) # add yarp definitions - this contains also -D_REENTRANT
## then apps
add_subdirectory(app)
file(GLOB source src/*.cpp)
file(GLOB header include/*.h)
source_group("Source Files" FILES ${source})
source_group("Header Files" FILES ${header})
include_directories(${PROJECT_SOURCE_DIR}/include
${YARP_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
add_executable(${PROJECTNAME} ${source} ${header})
target_link_libraries(${PROJECTNAME} ${YARP_LIBRARIES} ${OpenCV_LIBRARIES})
install(TARGETS ${PROJECTNAME} DESTINATION bin)
yarp_install(FILES ${PROJECTNAME}.xml DESTINATION ${ICUBCONTRIB_MODULES_INSTALL_DIR})