net_env_project/CMakeLists.txt

26 lines
583 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.16)
project(AvionicsNetworkEnv VERSION 1.0.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (MSVC)
add_compile_options(/utf-8)
endif()
# ── 头文件目录 ──
include_directories(include)
# ── 核心源文件(不含 main ──
set(CORE_SOURCES
src/dau.cpp
src/ppu.cpp
src/dsu.cpp
)
# ── 主程序 ──
add_executable(avionics_network_env src/main.cpp ${CORE_SOURCES})
# ── 测试可执行文件 ──
add_executable(basic_test tests/basic_test.cpp ${CORE_SOURCES})