mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 22:35:14 +02:00
add a DISABLE_OPENNI option for release builds without OpenNI
This commit is contained in:
parent
4d9075f21c
commit
ed48f8d982
1 changed files with 2 additions and 2 deletions
|
@ -100,12 +100,12 @@ find_package(UVCCameraControl)
|
||||||
find_package(ZLIB)
|
find_package(ZLIB)
|
||||||
|
|
||||||
# let the source know that we have OpenNI/NITE for Kinect
|
# let the source know that we have OpenNI/NITE for Kinect
|
||||||
if (OPENNI_FOUND)
|
if (OPENNI_FOUND AND NOT DISABLE_OPENNI)
|
||||||
add_definitions(-DHAVE_OPENNI)
|
add_definitions(-DHAVE_OPENNI)
|
||||||
include_directories(SYSTEM ${OPENNI_INCLUDE_DIRS})
|
include_directories(SYSTEM ${OPENNI_INCLUDE_DIRS})
|
||||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isystem ${OPENNI_INCLUDE_DIRS}")
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isystem ${OPENNI_INCLUDE_DIRS}")
|
||||||
target_link_libraries(${TARGET_NAME} ${OPENNI_LIBRARIES})
|
target_link_libraries(${TARGET_NAME} ${OPENNI_LIBRARIES})
|
||||||
endif (OPENNI_FOUND)
|
endif (OPENNI_FOUND AND NOT DISABLE_OPENNI)
|
||||||
|
|
||||||
qt5_use_modules(${TARGET_NAME} Core Gui Network OpenGL Svg)
|
qt5_use_modules(${TARGET_NAME} Core Gui Network OpenGL Svg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue