-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
42 lines (34 loc) · 1.4 KB
/
CMakeLists.txt
File metadata and controls
42 lines (34 loc) · 1.4 KB
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
message(STATUS "The CMake version used is ${CMAKE_VERSION}")
cmake_minimum_required(VERSION 3.5...${CMAKE_VERSION})
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
PROJECT(segfault
VERSION 0.1.0
DESCRIPTION ""
HOMEPAGE_URL "")
# Cache these to allow the user to override them manually.
set( LIB_INSTALL_DIR "lib" CACHE PATH "Path the built library files are installed to." )
set( BIN_INSTALL_DIR "bin" CACHE PATH "Path the tool executables are installed to." )
# Set the default build output folders
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib )
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/bin )
set(SEGFAULT_VERSION_MAJOR 0 )
set(SEGFAULT_VERSION_MINOR 1 )
set(SEGFAULT_VERSION_PATCH 0 )
set(SEGFAULT_VERSION ${SEGFAULT_VERSION_MAJOR}.${SEGFAULT_VERSION_MINOR}.${SEGFAULT_VERSION_PATCH} )
set(PROJECT_VERSION "${SEGFAULT_VERSION}" )
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(SDL2 CONFIG REQUIRED)
find_package(glm REQUIRED)
find_package(volk CONFIG REQUIRED)
find_package(nlohmann_json CONFIG REQUIRED)
include_directories( BEFORE
src/runtime
src/contrib/cppcore/include
)
add_subdirectory(src/contrib/cppcore)
add_subdirectory(src/editor)
add_subdirectory(src/runtime)
add_subdirectory(src/tools)
add_subdirectory(src/examples)