项目文件结构
cmake_minimum_required(VERSION 3.15) project(AddTest) message("CMAKE_CURRENT_BINARY_DIR: " ${CMAKE_CURRENT_BINARY_DIR}) message("CMAKE_CURRENT_SOURCE_DIR: " ${CMAKE_CURRENT_SOURCE_DIR}) message("CMAKE_HOME_DIRECTORY: " ${CMAKE_HOME_DIRECTORY}) message("CMAKE_SOURCE_DIR: " ${CMAKE_SOURCE_DIR}) message("PROJECT_BINARY_DIR: " ${PROJECT_BINARY_DIR}) message("PROJECT_SOURCE_DIR: " ${PROJECT_SOURCE_DIR})
标签:CURRENT,CMAKE,PROJECT,SOURCE,参数,相对路径,cmake,message,DIR From: https://www.cnblogs.com/wangtianning1223/p/17024252.html