@@ -3,16 +3,14 @@ project(imu_tk)
3
3
cmake_minimum_required (VERSION 2.8)
4
4
cmake_policy (SET CMP0015 NEW)
5
5
6
- if ( NOT DEFINED CMAKE_BUILD_TYPE )
6
+ if ( " ${CMAKE_BUILD_TYPE} " STREQUAL "" )
7
7
set (CMAKE_BUILD_TYPE "Release" )
8
- endif (NOT DEFINED CMAKE_BUILD_TYPE )
8
+ endif ()
9
9
10
10
if (NOT DEFINED BUILD_IMU_TK_EXAMPLES)
11
11
set (BUILD_IMU_TK_EXAMPLES "ON" )
12
12
endif (NOT DEFINED BUILD_IMU_TK_EXAMPLES)
13
13
14
- message ("${CMAKE_CXX_FLAGS_RELEASE} " )
15
-
16
14
find_package (Boost REQUIRED)
17
15
find_package (Eigen3 REQUIRED)
18
16
find_package (Ceres REQUIRED)
@@ -60,23 +58,8 @@ if( BUILD_IMU_TK_EXAMPLES )
60
58
61
59
add_executable (test_imu_calib apps/test_imu_calib.cpp)
62
60
target_link_libraries ( test_imu_calib ${IMU_TK_LIBS} )
63
-
64
61
set_target_properties ( test_imu_calib PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR} /bin)
65
62
66
- add_executable (test_phone_calib apps/test_phone_calib.cpp)
67
- target_link_libraries ( test_phone_calib ${IMU_TK_LIBS} )
68
-
69
- set_target_properties ( test_phone_calib PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR} /bin)
70
-
71
- add_executable (test_imu_calib2 apps/test_imu_calib2.cpp)
72
- target_link_libraries ( test_imu_calib2 ${IMU_TK_LIBS} )
73
-
74
- set_target_properties ( test_imu_calib2 PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR} /bin)
75
-
76
- add_executable (test_imu_calib3 apps/test_imu_calib3.cpp)
77
- target_link_libraries ( test_imu_calib3 ${IMU_TK_LIBS} )
78
-
79
- set_target_properties ( test_imu_calib3 PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR} /bin)
80
63
81
64
add_executable (test_integration apps/test_integration.cpp)
82
65
target_link_libraries ( test_integration ${IMU_TK_LIBS} )
0 commit comments