diff --git a/source__build_carla.md b/source__build_carla.md index 4e6f3cb..ac29dd3 100644 --- a/source__build_carla.md +++ b/source__build_carla.md @@ -149,14 +149,15 @@ clone最新的就行,不用切换分支。 cd carla/root mkdir build # 名字自定义 cd build - cmake .. \ - -G "Ninja" \ - -DCMAKE_BUILD_TYPE=Client \ - -DLIBCARLA_BUILD_RELEASE=ON \ - -DLIBCARLA_BUILD_DEBUG=OFF \ - -DLIBCARLA_BUILD_TEST=OFF \ - -DCMAKE_TOOLCHAIN_FILE=./Examples/CppClient/ToolChain.cmake \ - -DCMAKE_INSTALL_PREFIX=./ + cmake \ + -G "Ninja" \ + -DCMAKE_BUILD_TYPE=Client \ + -DLIBCARLA_BUILD_RELEASE=ON \ + -DLIBCARLA_BUILD_DEBUG=OFF \ + -DLIBCARLA_BUILD_TEST=OFF \ + -DCMAKE_TOOLCHAIN_FILE=../Examples/CppClient/ToolChain.cmake \ + -DCMAKE_INSTALL_PREFIX=../carlalib \ + .. # 说明 # -DCMAKE_INSTALL_PREFIX 编译好后,库文件和头文件的安装目录 自由指定 # -DLIBCARLA_BUILD_RELEASE=ON -DLIBCARLA_BUILD_DEBUG=OFF 指定编译模式