-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
70 lines (57 loc) · 2.97 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.20)
cmake_policy(SET CMP0048 NEW)
cmake_policy(SET CMP0148 NEW)
project(
epseon_backend
VERSION "0.1.0"
LANGUAGES CXX
)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(REPOSITORY_ROOT "${PROJECT_SOURCE_DIR}")
find_package(Python3 REQUIRED COMPONENTS Development Interpreter)
message("----------------------------------- Python3 -----------------------------------")
message("Python3_FOUND = '${Python3_FOUND}'")
message("Python3_Interpreter_FOUND = '${Python3_Interpreter_FOUND}'")
message("Python3_EXECUTABLE = '${Python3_EXECUTABLE}'")
message("Python3_INTERPRETER_ID = '${Python3_INTERPRETER_ID}'")
message("Python3_STDLIB = '${Python3_STDLIB}'")
message("Python3_STDARCH = '${Python3_STDARCH}'")
message("Python3_SITELIB = '${Python3_SITELIB}'")
message("Python3_SITEARCH = '${Python3_SITEARCH}'")
message("Python3_SOABI = '${Python3_SOABI}'")
message("Python3_SOSABI = '${Python3_SOSABI}'")
message("--------------------------------- development ---------------------------------")
message("Python3_Development_FOUND = '${Python3_Development_FOUND}'")
message(" .Module_FOUND = '${Python3_Development.Module_FOUND}'")
message(" .SABIModule_FOUND = '${Python3_Development.SABIModule_FOUND}'")
message(" .Embed_FOUND = '${Python3_Development.Embed_FOUND}'")
message("Python3_INCLUDE_DIRS = '${Python3_INCLUDE_DIRS}'")
message("Python3_LINK_OPTIONS = '${Python3_LINK_OPTIONS}'")
message("Python3_LIBRARY = '${Python3_LIBRARY}'")
message("Python3_LIBRARY_DIRS = '${Python3_LIBRARY_DIRS}'")
message("Python3_LIBRARIES = '${Python3_LIBRARIES}'")
message("Python3_SABI_LIBRARIES = '${Python3_SABI_LIBRARIES}'")
message("Python3_RUNTIME_SABI_LIBRARY_DIRS = '${Python3_RUNTIME_SABI_LIBRARY_DIRS}'")
message("------------------------------------- end -------------------------------------")
# fmt} is an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams.
message("-> Adding external dependency: fmt")
add_subdirectory("external/fmt")
# Add pybind11, C++ wrapper around Python C API.
message("-> Adding external dependency: pybind11")
add_subdirectory("external/pybind11")
# Add Logging library as subdirectory.
message("-> Adding external dependency: spdlog")
add_subdirectory("external/spdlog")
# Add GoogleTest as a subdirectory.
message("-> Adding external dependency: GoogleTest")
add_subdirectory("external/googletest")
message("-> Adding external dependency: VulkanMemoryAllocator-Hpp")
add_subdirectory("external/vma_hpp")
# Enable testing
enable_testing()
# Include the GoogleTest's cmake functions
include(GoogleTest)
add_subdirectory("cpp")