Skip to content

Commit b94ad63

Browse files
author
Alberto Pretto
committed
Bug fix in CMakeLists.txt
1 parent d8d6b5d commit b94ad63

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

CMakeLists.txt

+2-19
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@ project(imu_tk)
33
cmake_minimum_required (VERSION 2.8)
44
cmake_policy(SET CMP0015 NEW)
55

6-
if(NOT DEFINED CMAKE_BUILD_TYPE)
6+
if ("${CMAKE_BUILD_TYPE}" STREQUAL "")
77
set(CMAKE_BUILD_TYPE "Release")
8-
endif(NOT DEFINED CMAKE_BUILD_TYPE)
8+
endif()
99

1010
if(NOT DEFINED BUILD_IMU_TK_EXAMPLES)
1111
set(BUILD_IMU_TK_EXAMPLES "ON")
1212
endif(NOT DEFINED BUILD_IMU_TK_EXAMPLES)
1313

14-
message("${CMAKE_CXX_FLAGS_RELEASE}")
15-
1614
find_package(Boost REQUIRED)
1715
find_package(Eigen3 REQUIRED)
1816
find_package(Ceres REQUIRED)
@@ -60,23 +58,8 @@ if( BUILD_IMU_TK_EXAMPLES )
6058

6159
add_executable(test_imu_calib apps/test_imu_calib.cpp)
6260
target_link_libraries( test_imu_calib ${IMU_TK_LIBS})
63-
6461
set_target_properties( test_imu_calib PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
6562

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)
8063

8164
add_executable(test_integration apps/test_integration.cpp)
8265
target_link_libraries( test_integration ${IMU_TK_LIBS})

0 commit comments

Comments
 (0)