cmake
一别情深
不忘初心,方得始终!
展开
-
一个简单的CMake示例
CMake的执行就是这么简单,其难点在于如何编写CMakeLists.txt文件,下面结合例子简单介绍CMakeLists.txt的编写,看下面这个CMakeLists.txt#project namePROJECT(test_math)#head file pathINCLUDE_DIRECTORIES(include)#sourc原创 2015-06-04 23:31:50 · 1013 阅读 · 0 评论 -
CMake 使用方法
CMake是一个跨平台的安装(编译)工具,可以用简单的语句来描述所有平台的安装(编译过程)。他能够输出各种各样的makefile或者project文件,能测试编译器所支持的C++特性,类似UNIX下的automake。CMake 使用方法CMake的所有的语句都写在一个叫:CMakeLists.txt 的文件中。当CMakeLists.txt文件确定后,可以用ccmake命原创 2015-06-04 23:29:27 · 688 阅读 · 0 评论 -
CMake/CPack变量之CPACK_SET_DESTDIR
Boolean toggle to make CPack use DESTDIR mechanism when packaging.DESTDIR means DESTination DIRectory. It is commonly used by makefile users in order to install software at non-default location. It is原创 2016-01-29 16:03:43 · 1240 阅读 · 0 评论 -
CMake/CPack变量之CPACK_PACKAGING_INSTALL_PREFIX
CPACK_PACKAGING_INSTALL_PREFIXThe prefix used in the built package.Each CPack generator has a default value (like /usr). This default value may be overwritten from the CMakeLists.txt or the cpack comma原创 2016-01-29 16:05:33 · 982 阅读 · 0 评论 -
CMake/CPack变量之CMAKE_INSTALL_PREFIX
CMAKE_INSTALL_PREFIXInstall directory used by install.If “make install” is invoked or INSTALL is built, this directory is prepended onto all install directories. This variable defaults to /usr/local on原创 2016-01-29 16:08:07 · 2479 阅读 · 0 评论