-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (34 loc) · 1.16 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
cmake_minimum_required(VERSION 3.19)
project(ICE_ROOT)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20")
set(CMAKE_CXX_STANDARD 20)
include(cmake/fetch_dependencies.cmake)
set(GLFW_INSTALL OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
if(APPLE)
find_library(COCOA_LIBRARY Cocoa REQUIRED)
find_library(OPENGL_LIBRARY OpenGL REQUIRED)
find_library(IOKIT_LIBRARY IOKit REQUIRED)
elseif(UNIX)
link_libraries(-lstdc++fs)
endif()
include_directories(includes)
set(IMGUI_SRC
${CMAKE_CURRENT_SOURCE_DIR}/includes/ImGUI/imgui_impl_glfw.cpp
${CMAKE_CURRENT_SOURCE_DIR}/includes/ImGUI/imgui_impl_opengl3.cpp
${CMAKE_CURRENT_SOURCE_DIR}/includes/ImGUI/imgui.cpp
${CMAKE_CURRENT_SOURCE_DIR}/includes/ImGUI/imgui_widgets.cpp
${CMAKE_CURRENT_SOURCE_DIR}/includes/ImGUI/imgui_draw.cpp
${CMAKE_CURRENT_SOURCE_DIR}/includes/ImGUI/imgui_tables.cpp
)
set(IMGUIZMO_SRC
${CMAKE_CURRENT_SOURCE_DIR}/includes/ImGUI/ImGuizmo.cpp
)
set(GL3W_SRC
${CMAKE_CURRENT_SOURCE_DIR}/includes/GL/gl3w.c
)
add_subdirectory(ICE)
add_subdirectory(ICEBERG)
add_subdirectory(ICEFIELD)