https://cmake.org/cmake/help/v3.10/manual/cmake-language.7.htmlhtml
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.ui
cmake_install.cmake
this
You don't use cmake_install.cmake directly. It contains instructions that cmake uses to install your program.
咱們並不直接使用cmake_install.cmake, 該文件包含了安裝程序所需的一些指令。code
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.htm
links: https://cmake.org/cmake/help/v3.0/variable/CMAKE_INSTALL_PREFIX.htmlip
regex_replace
正則表達式替換get
CMAKE_INSTALL_CONFIG_NAME
it
CMakeCache.txt
io
# 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.