diff --git a/ch3/examples/CMakeLists.txt b/ch3/examples/CMakeLists.txt index 4b329f561..8c223285f 100644 --- a/ch3/examples/CMakeLists.txt +++ b/ch3/examples/CMakeLists.txt @@ -1,6 +1,8 @@ include_directories("/usr/include/eigen3") add_executable(coordinateTransform coordinateTransform.cpp) +set(CMAKE_CXX_FLAGS "-std=c++14") + find_package(Pangolin REQUIRED) include_directories(${Pangolin_INCLUDE_DIRS}) add_executable(plotTrajectory plotTrajectory.cpp) diff --git a/ch3/visualizeGeometry/CMakeLists.txt b/ch3/visualizeGeometry/CMakeLists.txt index 70a966f3d..55e21825b 100644 --- a/ch3/visualizeGeometry/CMakeLists.txt +++ b/ch3/visualizeGeometry/CMakeLists.txt @@ -1,7 +1,8 @@ cmake_minimum_required( VERSION 2.8 ) project( visualizeGeometry ) -set(CMAKE_CXX_FLAGS "-std=c++11") +# set(CMAKE_CXX_FLAGS "-std=c++11") +set(CMAKE_CXX_FLAGS "-std=c++14") # 添加Eigen头文件 include_directories( "/usr/include/eigen3" )