make知识

makelist 语法

https://cmake.org/cmake/help/v3.10/manual/cmake-language.7.html


CMakeLists.txt

I am of the opinion that you need not use an automated script for generating CMakeLists.Txt as it is a very simple task to write one, after you have understood the basic procedure. Yeah I do agree that understanding the procedure to write one as given in CMake Wiki is also difficult as it is too much detailed.


cmake_install.cmake

You don't use cmake_install.cmake directly. It contains instructions that cmake uses to install your program.
我们并不直接使用cmake_install.cmake, 该文件包含了安装程序所需的一些指令。


CMAKE_INSTALL_PREFIX
Install 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 UNIX and c:/Program Files on Windows.

links: https://cmake.org/cmake/help/v3.0/variable/CMAKE_INSTALL_PREFIX.html

regex_replace正则表达式替换

CMAKE_INSTALL_CONFIG_NAME


CMakeCache.txt

# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

posted on 2017-11-07 13:23  lion_zheng  阅读(158)  评论(0编辑  收藏  举报

导航