cmake

信息变量

CMAKE_SYSTEM

CAMKE_SYSTEM_NAME

CMAKE_SYSTEM_VERSION

CMAKE_SYSTEM_PROCESSOR

UNIX

WIN32

CMAKE_MAJOR_VERSION

CMAKE_MINOR_VERSION

CMAKE_PATCH_VERSION

预定义变量

PROJECT_NAME

CMAKE_C_COMPILER

CMAKE_CXX_COMPILER

CMAKE_C_FLAGS

CMAKE_CXX_FLAGS

CMAKE_INCLUDE_PATH

CMAKE_LIBRARY_PATH

CMAKE_INSTALL_PREFIX

PROJECT_BINARY_DIR

PROJECT_SOURCE_DIR

CMAKE_CURRENT_SOURCE_DIR

CMAKE_CURRENT_BINARY_DIR

CMAKE_PREFIX_PATH

CMAKE_MODULE_PATH

CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS

CMAKE_BUILD_TYPE

BUILD_SHARED_LIBS

EXECUTABLE_OUTPUT_PATH

LIBRARY_OUTPUT_PATH

Table of Contents