-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
37 lines (26 loc) · 1 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
cmake_minimum_required(VERSION 3.28)
add_subdirectory(thirdparty)
project(AvalancheEngine LANGUAGES C CXX VERSION 0.0.1)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# Building library and executable in same directory to avoid "dll not found" problem in Windows
set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/Binaries")
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/Binaries")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/Binaries")
# Set current root directory
set(AVALANCHE_CMAKE_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR})
# CMake modules
include(CMakeDependentOption)
include(GenerateExportHeader)
include(CMakeParseArguments)
add_subdirectory(buildsystem/generator)
# Project defined cmake modules
include(buildsystem/cmake/SetupPython.cmake)
include(buildsystem/cmake/TargetHelper.cmake)
include(buildsystem/cmake/Options.cmake)
include_directories(
AFTER ${CMAKE_BINARY_DIR}/ExportHeaders
)
add_subdirectory(crates)
generate_enabled_modules_list()