cmake增加调试选项

1
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")

指定安装路径

1
cmake -DCMAKE_INSTALL_PREFIX=path_to_install -DCMAKE_BUILD_TYPE=Release
1
set(CMAKE_INSTALL_PREFIX path_to_install)