forked from rgbdemo/nestk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UseNestk.cmake.in
40 lines (32 loc) · 1.44 KB
/
UseNestk.cmake.in
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
# To be included by programs using nestk as an external library.
SET(NESTK_USE_GSL @NESTK_USE_GSL@)
SET(NESTK_USE_FREENECT @NESTK_USE_FREENECT@)
SET(NESTK_USE_OPENNI @NESTK_USE_OPENNI@)
SET(NESTK_USE_PCL @NESTK_USE_PCL@)
SET(NESTK_USE_ROS @NESTK_USE_ROS@)
SET(NESTK_USE_EMBEDDED_EIGEN @NESTK_USE_EMBEDDED_EIGEN@)
SET(NESTK_USE_EMBEDDED_GLEW @NESTK_USE_EMBEDDED_GLEW@)
SET(NESTK_USE_EMBEDDED_FREENECT @NESTK_USE_EMBEDDED_FREENECT@)
SET(NESTK_USE_EMBEDDED_OPENNI @NESTK_USE_EMBEDDED_OPENNI@)
IF(CMAKE_COMPILER_IS_GNUCXX)
SET(DEFAULT_NESTK_EXTRA_CMAKE_CXX_FLAGS "-fPIC -Wall -W -Wno-unused -Wno-sign-compare")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
SET(NESTK_EXTRA_CMAKE_CXX_FLAGS ${DEFAULT_NESTK_EXTRA_CMAKE_CXX_FLAGS}
CACHE STRING "Extra flags appended to CMAKE_CXX_FLAGS" )
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${NESTK_EXTRA_CMAKE_CXX_FLAGS}" )
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}")
IF (NESTK_USE_ROS)
INCLUDE("@nestk_BINARY_DIR@/deps/cmake/UseNestkDepsROS.cmake")
ELSE()
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/find_nestk_deps.cmake")
ENDIF()
# For some reasons, qt libraries are needed here on mac.
IF (APPLE)
SET(NESTK_LIBRARIES ${QT_LIBRARIES} ${QT_LIBRARIES})
ENDIF()
## Check if private part is enabled.
IF(IS_DIRECTORY "${NESTK_INCLUDE_DIR}/ntk/private")
ADD_DEFINITIONS(-DNESTK_PRIVATE)
SET(HAVE_NESTK_PRIVATE 1 CACHE INTERNAL "Nestk private features are available")
ENDIF()
INCLUDE_DIRECTORIES(${NESTK_INCLUDE_DIR})