-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (28 loc) · 1.41 KB
/
CMakeLists.txt
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
INCLUDE(../../cmakemodules/AssureCMakeRootFile.cmake) # Avoid user mistake in CMake source directory
if (CMAKE_MRPT_HAS_OPENNI2) # This project can't be built without OpenNI2
#-----------------------------------------------------------------
# CMake file for the MRPT application: ReactiveNav3D-Demo
#
# Run with "cmake ." at the root directory
#
# January 2014, Mariano Jaimez Tarifa <marianojt@uma.es>
#-----------------------------------------------------------------
PROJECT(DifOdometry-Camera)
#MESSAGE(STATUS "Makefile for application: /apps/ReactiveNav3D-Demo ")
# ---------------------------------------------
# TARGET:
# ---------------------------------------------
# Define the executable target:
ADD_EXECUTABLE(DifOdometry-Camera
DifOdometry_Camera_main.cpp
DifOdometry_Camera.cpp
DifOdometry_Camera.h)
SET(TMP_TARGET_NAME "DifOdometry-Camera")
# Add the required libraries for linking:
TARGET_LINK_LIBRARIES(${TMP_TARGET_NAME} ${MRPT_LINKER_LIBS} ${OPENNI2_LIBRARIES})
# Dependencies on MRPT libraries:
# Just mention the top-level dependency, the rest will be detected automatically,
# and all the needed #include<> dirs added (see the script DeclareAppDependencies.cmake for further details)
DeclareAppDependencies(${TMP_TARGET_NAME} mrpt-gui mrpt-opengl mrpt-vision)
DeclareAppForInstall(${TMP_TARGET_NAME})
endif (CMAKE_MRPT_HAS_OPENNI2) # This project can't be built without OpenNI2