-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
37 lines (27 loc) · 927 Bytes
/
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
PROJECT(Odometry-Multicamera)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW) # Required by CMake 2.7+
endif(COMMAND cmake_policy)
FIND_PACKAGE(MRPT REQUIRED base gui opengl slam maps obs)
#FIND_PACKAGE(OpenCV REQUIRED )
#FIND_PACKAGE(PCL REQUIRED)
#INCLUDE_DIRECTORIES(${PCL_INCLUDE_DIRS})
#LINK_DIRECTORIES(${PCL_LIBRARY_DIRS})
#ADD_DEFINITIONS(${PCL_DEFINITIONS})
ADD_EXECUTABLE(Difodo-Multi-Datasets
main_Difodo_multi_datasets.cpp
Difodo_multi_datasets.cpp
Difodo_multi_datasets.h
CDifodo_multi.h
CDifodo_multi.cpp
)
TARGET_LINK_LIBRARIES(Difodo-Multi-Datasets
${MRPT_LIBS}
#${PCL_LIBRARIES}
#${OpenCV_LIBS}
)
# Set optimized building:
IF(CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_BUILD_TYPE MATCHES "Debug")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -mtune=native")
ENDIF(CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_BUILD_TYPE MATCHES "Debug")