-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
67 lines (50 loc) · 1.92 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
cmake_minimum_required(VERSION 3.20)
### before-project config ###
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_EXTENSIONS OFF)
#############################
### project setup ###
project(VE001
VERSION 1.0.0
HOMEPAGE_URL "https://github.com/JungerBoyo/VE-001"
)
######################
### sub dirs ###
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/res
${CMAKE_CURRENT_SOURCE_DIR}/src
)
add_subdirectory(res)
add_subdirectory(shaders)
add_subdirectory(src)
################
### add conan install as dependency ###
### package project ###
install(TARGETS ve001-benchmark RUNTIME DESTINATION "./")
install(TARGETS ve001 DESTINATION "./engine/lib/")
install(TARGETS vmath DESTINATION "./vmath/lib/")
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/res/vmath/vmath.h
${CMAKE_CURRENT_SOURCE_DIR}/res/vmath/vmath_types.h
DESTINATION "./vmath/include/")
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/chunk_data_streamer.h
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/chunk_generator.h
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/chunk_id.h
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/chunk_pool.h
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/engine_context.h
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/engine.h
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/enums.h
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/gpu_buffer.h
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/meshing_engine.h
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/ringbuffer.h
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/shader.h
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/threadsafe_ringbuffer.h
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/vertex.h
${CMAKE_CURRENT_SOURCE_DIR}/src/engine/world_grid.h
DESTINATION "./engine/include/")
install(DIRECTORY ${PROJECT_SOURCE_DIR}/shaders/bin DESTINATION "./shaders/")
install(DIRECTORY ${PROJECT_SOURCE_DIR}/shaders/src DESTINATION "./shaders/")
include(CPack)
########################