cmake 语法
CMake基础教程(24)add_executable生成目标可执行文件_cmake executable-CSDN博客
#CMakeLists.txtcmake_minimum_required(VERSION 3.10.2)project(test)SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY output) #设置可执行目标文件的输出目录include_directories(sub)add_subdirectory(sub)add_executable(runtest main.cpp)target_sources(runtest test.cpp)