-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (48 loc) · 1.63 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
# ---------------------------------------------------------------------------------
# Projects Settings
# ---------------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.3)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
MACRO(SUBDIRLIST result curdir)
FILE(GLOB children RELATIVE ${curdir} ${curdir}/*)
SET(dirlist "")
FOREACH(child ${children})
IF(IS_DIRECTORY ${curdir}/${child})
LIST(APPEND dirlist ${child})
ENDIF()
ENDFOREACH()
SET(${result} ${dirlist})
ENDMACRO()
if(APPLE)
find_library(IOKIT_LIBRARY IOKit)
find_library(COCOA_LIBRARY Cocoa)
find_library(OPENGL_LIBRARY OpenGL)
find_library(COREVIDEO_LIBRARY CoreVideo)
set(APPLE_LIBRARIES
${OPENGL_LIBRARY}
${COCOA_LIBRARY}
${IOKIT_LIBRARY}
${COREVIDEO_LIBRARY}
)
endif()
# ---------------------------------------------------------------------------------
# Cmake projects
# ---------------------------------------------------------------------------------
project(gpu-particle-system)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(FBX_SUPPORT OFF)
set(LIBRARIES_SOURCE_PATH ${CMAKE_SOURCE_DIR}/libraries)
include_directories(
${LIBRARIES_SOURCE_PATH}/glad/include
${LIBRARIES_SOURCE_PATH}/glfw/include
${LIBRARIES_SOURCE_PATH}/imgui/include
${LIBRARIES_SOURCE_PATH}/glm/include
${LIBRARIES_SOURCE_PATH}/stb/include
${LIBRARIES_SOURCE_PATH}/assimp/include
${LIBRARIES_SOURCE_PATH}/assimp
${LIBRARIES_SOURCE_PATH}/itugl/include
)
add_subdirectory(${CMAKE_SOURCE_DIR}/libraries)
add_subdirectory(${CMAKE_SOURCE_DIR}/src)