-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
66 lines (54 loc) · 1.51 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.18)
project(Dredgen)
set(CMAKE_CXX_STANDARD 17)
file(GLOB_RECURSE HEADER_FILES "Dredgen/*.h")
file(GLOB_RECURSE SOURCE_FILES "Dredgen/*.cpp")
# source_group(TREE "${ENGINE_ROOT_DIR}/schema" FILES ${SCHEMA_FILES})
source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}" FILES ${HEADER_FILES} ${SOURCE_FILES})
add_subdirectory(thirdparty/glm)
add_subdirectory(thirdparty/glfw)
add_subdirectory(thirdparty/assimp)
add_subdirectory(thirdparty/glad45)
add_subdirectory(thirdparty/nativefiledialog)
add_executable(${PROJECT_NAME} ${HEADER_FILES} ${SOURCE_FILES})
include(cmake/compileoptions.cmake)
configure_compile_options(${PROJECT_NAME})
target_include_directories(${PROJECT_NAME} PUBLIC
${PROJECT_SOURCE_DIR}/Dredgen
thirdparty/glm/
thirdparty/glfw/include
thirdparty/assimp/include
thirdparty/glad45/
thirdparty/stb
thirdparty/nativefiledialog
)
target_link_libraries(${PROJECT_NAME} PUBLIC
glad45
glfw
nativefiledialog
assimp
)
set_property(TARGET
${PROJECT_NAME}
assimp
glad45
uninstall
unit
nativefiledialog
zlibstatic
UpdateAssimpLibsDebugSymbolsAndDLLs
PROPERTY FOLDER "thirdparty")
set_property(TARGET
${PROJECT_NAME}
Dredgen
PROPERTY FOLDER "Dredgen")
find_package(Doxygen)
if(DOXYGEN_FOUND)
set(DOXYGEN_GENERATE_HTML YES)
set(DOXYGEN_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/docs)
doxygen_add_docs(
doxygen
Dredgen
COMMENT "Generate html pages"
)
endif(DOXYGEN_FOUND)