-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
54 lines (42 loc) · 1.14 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
cmake_minimum_required(VERSION 3.24)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# conan
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan_provider.cmake")
message(
STATUS
"Downloading conan_provider.cmake from https://github.com/conan-io/cmake-conan"
)
file(
DOWNLOAD
"https://raw.githubusercontent.com/conan-io/cmake-conan/refs/heads/develop2/conan_provider.cmake"
"${CMAKE_BINARY_DIR}/conan_provider.cmake"
TLS_VERIFY ON
)
endif()
# compiler
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_PROJECT_TOP_LEVEL_INCLUDES ${CMAKE_BINARY_DIR}/conan_provider.cmake)
project("AltFS" LANGUAGES CXX)
# global configuration
enable_testing()
find_package(asio)
find_package(spdlog)
find_package(sol2)
find_package(continuable)
find_package(Catch2)
# windows defaults
if(WIN32)
add_definitions(-D_WIN32_WINNT=0x0A00)
endif()
if(MSVC)
add_compile_options(/MP)
endif()
# Include sub-projects.
if(WIN32)
add_subdirectory("AltFS")
endif()
add_subdirectory("LuaEngine")
add_subdirectory("LuaTest")
add_subdirectory("XPlaneUDPClientCpp")