-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
66 lines (43 loc) · 1.56 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
# cmake_minimum_required(VERSION 3.20.5)
# set(CMAKE_CXX_STANDARD 20)
# project(renderer)
# find_package(OpenGL REQUIRED)
# find_package(Freetype REQUIRED)
# find_package(glfw3 REQUIRED)
# find_package(GLEW REQUIRED)
# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../)
# set(
# OPENGL_SOURCES
# Vbe/VoxelRenderer/VoxelRenderer.cpp
# Vbe/VoxelRenderer/Camera/Camera.cpp
# Vbe/VoxelRenderer/Chunk/Chunk.cpp
# Vbe/TextRenderer/TextRenderer.cpp
# Vbe/Engine/Engine.cpp
# )
# set(
# GPP_OPTIONS
# -Wall
# -Wextra
# )
# foreach(FLAG ${GPP_OPTIONS})
# message(${FLAG})
# endforeach()
# add_executable(renderer ${OPENGL_SOURCES})
# target_compile_options(renderer PRIVATE ${GPP_OPTIONS})
# target_include_directories(renderer PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/inc)
# target_include_directories(renderer PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
# target_include_directories(renderer PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/Camera)
# target_link_libraries(renderer PRIVATE ${OPENGL_LIBRARIES})
# target_link_libraries(renderer PRIVATE ${FREETYPE_LIBRARIES})
# target_link_libraries(renderer PRIVATE ${GLFW_LIBRARIES})
# target_link_libraries(renderer PRIVATE ${GLEW_LIBRARIES})
# target_link_libraries(renderer PRIVATE glfw)
# include_directories(/usr/include/freetype2)
cmake_minimum_required(VERSION 3.20.5)
project(renderer)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_compile_options(-Wno-unused-command-line-argument)
add_subdirectory(Mist)
add_subdirectory(src)