2023-08-06 03:08:28 +00:00
|
|
|
|
cmake_minimum_required(VERSION 3.10)
|
2023-08-06 03:21:28 +00:00
|
|
|
|
|
|
|
|
|
# 指定C++版本
|
2023-08-06 03:08:28 +00:00
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
|
|
|
|
|
|
project(AbstractFatory)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set(SRC_LIST main.cpp)
|
|
|
|
|
add_executable(app ${SRC_LIST})
|
2023-08-06 03:21:28 +00:00
|
|
|
|
|
|
|
|
|
# 指定可执行文件的输出路径,相对路径是相对makefile文件位置的路径
|
2023-08-06 03:08:28 +00:00
|
|
|
|
set(WORK_DIR ../)
|
|
|
|
|
set(EXECUTABLE_OUTPUT_PATH ${WORK_DIR})
|