-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
24 lines (21 loc) · 903 Bytes
/
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
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_TOOLCHAIN_FILE vcpkg/scripts/buildsystems/vcpkg.cmake)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
project(VoxelEngine VERSION 0.0.2)
add_subdirectory(Source/Editor)
add_subdirectory(Source/Runtime)
add_subdirectory(Source/ThirdParty)
# ================ BUILD DIRECTORIES ================
set_target_properties(Runtime PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PREFIX}/Runtime
LIBRARY_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PREFIX}/Runtime
RUNTIME_OUTPUT_DIRECTORY ${BINARY_OUTPUT_PREFIX}/Runtime
)
set_target_properties(Editor PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PREFIX}/Editor
LIBRARY_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PREFIX}/Editor
RUNTIME_OUTPUT_DIRECTORY ${BINARY_OUTPUT_PREFIX}/Editor
EXECUTABLE_OUTPUT_PATH ${BINARY_OUTPUT_PREFIX}/Editor
)