-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (38 loc) · 1.36 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
cmake_minimum_required(VERSION 3.1...3.14)
if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()
include(cmake/macros.cmake)
set(vgl_major_version 0)
set(vgl_minor_version 1)
set(vgl_patch_version 0)
project(vgl
VERSION ${vgl_major_version}.${vgl_minor_version}.${vgl_patch_version}
DESCRIPTION "Personal CG and CV project"
LANGUAGES C CXX)
option(vgl_build_tests OFF)
option(vgl_install OFF)
option(CMAKE_EXPORT_COMPILE_COMMANDS ON)
list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake)
set(EXTERNAL_PATH ${CMAKE_SOURCE_DIR}/external)
set(SRC_PATH ${CMAKE_SOURCE_DIR}/src)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(glsp_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../cppdependencies/install-x64-Debug/lib/cmake/glsp/)
endif()
if (CMAKE_BUILD_TYPE STREQUAL "Release")
set(glsp_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../cppdependencies/install-x64-Release/lib/cmake/glsp/)
endif()
find_package(OpenMP REQUIRED)
find_package(OpenGL REQUIRED)
find_package(glad REQUIRED)
find_package(stb REQUIRED)
find_package(glfw3 REQUIRED)
find_package(imgui REQUIRED)
find_package(glsp REQUIRED)
find_package(iconfont REQUIRED)
find_package(nativefiledialog REQUIRED)
find_package(assimp REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)
add_subdirectory(src)
add_subdirectory(projects)