默认是静态链接库,cmake安装其为动态
To build libccd as a shared library, set the BUILD_SHARED_LIBS option:
$ mkdir build && cd build
$ cmake -G “Unix Makefiles” -DBUILD_SHARED_LIBS=ON …
$ make && make install
同样,默认fcl安装为动态库,需要安装fcl为静态库,查cmakelist.txt
默认安装指令中cmake 加附加参数
Install:
=======
* Linux / Mac OS:
The CMakeLists.txt can be used to generate makefiles; For example, one may use operations such as:
mkdir build
cd build
cmake .. 替换为: cmake -D FCL_STATIC_LIBRARY=ON ..
make -jN # N is the maximum number of parallel compile jobs
Once the compilation is finished,
make install
will install the project. To specify the installation prefix,
pass the parameter -DCMAKE_INSTALL_PREFIX=/my/prefix/ to the "cmake .." command above.