task_plan_2/CMakeLists.txt

23 lines
571 B
CMake
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

cmake_minimum_required(VERSION 3.14)
project(BattlefieldTaskPlanner VERSION 1.0.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (MSVC)
add_compile_options(/utf-8 /bigobj)
endif()
# 头文件搜索路径
include_directories(include)
# 收集核心模块源文件(不含 main.cpp
file(GLOB_RECURSE CORE_SOURCES src/core/*.cpp)
list(APPEND CORE_SOURCES src/app.cpp)
# ---------- 主程序 ----------
add_executable(battle_planner src/main.cpp ${CORE_SOURCES})
# ---------- 测试子目录 ----------
add_subdirectory(tests)