-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
29 lines (22 loc) · 1.12 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
cmake_minimum_required(VERSION 2.8)
set(CMAKE_CXX_STANDARD 11)
set(GLFW_SOURCE_DIR "${CMAKE_SOURCE_DIR}/external_libs/glfw-3.2.1")
set(IMGUI_SOURCE_DIR "${CMAKE_SOURCE_DIR}/external_libs/imgui-1.49")
set(TINYFD_SOURCE_DIR "${CMAKE_SOURCE_DIR}/external_libs/tiny_file_dialogs-2.7.3")
set(GLM_SOURCE_DIR "${CMAKE_SOURCE_DIR}/external_libs/glm")
include_directories("${GLFW_SOURCE_DIR}/deps"
"${GLFW_SOURCE_DIR}/include"
"${IMGUI_SOURCE_DIR}"
"${IMGUI_SOURCE_DIR}/examples/opengl_example"
"${TINYFD_SOURCE_DIR}"
"${GLM_SOURCE_DIR}"
"${CMAKE_SOURCE_DIR}/MyPaint")
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "Build the GLFW example programs")
set(GLFW_BUILD_TESTS OFF CACHE BOOL "Build the GLFW test programs")
set(GLFW_BUILD_DOCS OFF CACHE BOOL "Build the GLFW documentation")
set(GLFW_INSTALL OFF CACHE BOOL "Generate installation target")
add_subdirectory("${GLFW_SOURCE_DIR}" "${GLFW_SOURCE_DIR}/build")
add_subdirectory(MyPaint)
add_subdirectory(MyPaintGUI)
add_subdirectory(MyPaintDefaultTools)
add_subdirectory(MyPaintPluginPen)