快速编译新案例
编译方法
cd user_examples
cp ../2d_examples/test_2d_elastic_gate -r jsm_2d_elastic_gatecd ../../build
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache -DSPHINXSYS_BUILD_USER_EXAMPLES=ON -S ..make jsm_2d_elastic_gate[jsm@server build]$ make jsm_2d_elastic_gate
[100%] Built target sphinxsys_2d
[100%] Building CXX object tests/user_examples/jsm_2d_elastic_gate/CMakeFiles/jsm_2d_elastic_gate.dir/elastic_gate.cpp.o
[100%] Linking CXX executable bin/jsm_2d_elastic_gate
/opt/gcc-13.4.0/bin/g++ -O3 -DNDEBUG -Wl,--dependency-file,CMakeFiles/jsm_2d_elastic_gate.dir/link.d CMakeFiles/jsm_2d_elastic_gate.dir/elastic_gate.cpp.o -o bin/jsm_2d_elastic_gate -Wl,-rpath,/opt/sphinxsys-soft/Simbody-3.7/lib64:/opt/OpenBLAS/lib:/opt/sphinxsys-soft/oneTBB-2022.3.0/lib64:/opt/sphinxsys-soft/Boost-1.88.0/lib ../../../src/libsphinxsys_2d.a /opt/sphinxsys-soft/Simbody-3.7/lib64/libSimTKsimbody.so.3.7 /opt/sphinxsys-soft/Simbody-3.7/lib64/libSimTKmath.so.3.7 /opt/sphinxsys-soft/Simbody-3.7/lib64/libSimTKcommon.so.3.7 /opt/OpenBLAS/lib/libopenblas.so -lm -ldl -lpthread -lrt -ldl -lm /opt/sphinxsys-soft/oneTBB-2022.3.0/lib64/libtbb.so.12.17 /opt/sphinxsys-soft/oneTBB-2022.3.0/lib64/libtbbmalloc.so.2.17 /opt/sphinxsys-soft/Boost-1.88.0/lib/libboost_program_options.so.1.88.0 /opt/sphinxsys-soft/googletest-1.17.0/lib64/libgtest_main.a /opt/sphinxsys-soft/googletest-1.17.0/lib64/libgtest.a -lpthread
[100%] Built target jsm_2d_elastic_gate案例CMakeLists注解
变量名
含义
值
更现代的CMakeLists
Last updated