-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
70 lines (50 loc) · 1.44 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
cmake_minimum_required (VERSION 3.16.3)
if (APPLE)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
endif()
enable_language(CXX)
enable_testing()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if (MSVC)
set(CMAKE_CXX_FLAGS "/W4 /EHsc")
else()
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unknown-pragmas -pthread")
endif()
project(Prologue)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ../application)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ../application)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ../application)
include_directories(
SYSTEM "deps/include/"
"src/"
)
set(SOURCE_FILES
"src/app/AppSetting.cpp"
"src/app/CommandLine.cpp"
"src/app/Option.cpp"
"src/dynamics/WindModel.cpp"
"src/env/Environment.cpp"
"src/env/Map.cpp"
"src/gnuplot/plotter/IPlotter.cpp"
"src/gnuplot/plotter/Plotter2D.cpp"
"src/gnuplot/plotter/Plotter3D.cpp"
"src/math/Algorithm.cpp"
"src/math/Quaternion.cpp"
"src/math/Vector3D.cpp"
"src/result/ResultSaver.cpp"
"src/result/SimuResult.cpp"
"src/rocket/AeroCoefficient.cpp"
"src/rocket/Engine.cpp"
"src/rocket/RocketSpec.cpp"
"src/simulator/DetailSimulator.cpp"
"src/simulator/ScatterSimulator.cpp"
"src/simulator/SimulatorBase.cpp"
"src/simulator/SimulatorFactory.cpp"
"src/solver/Solver.cpp"
"src/utils/JsonUtils.cpp"
"src/main.cpp"
)
add_executable(Prologue ${SOURCE_FILES})
add_subdirectory("test")