forked from UniStuttgart-VISUS/megamol_pub_backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (40 loc) · 1.21 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
cmake_minimum_required(VERSION 3.0)
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
project(megamol)
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR} CACHE PATH "default install path" FORCE)
# configure directories
set(MEGAMOL_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(MEGAMOL_VISLIB_DIR ${MEGAMOL_DIR}/vislib)
set(MEGAMOL_CORE_DIR ${MEGAMOL_DIR}/core)
set(MEGAMOL_CONSOLE_DIR ${MEGAMOL_DIR}/console)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake)
# GLOBAL DLL DEFINITIONS
if(WIN32)
add_definitions(-DGL_LOAD_DLL)
endif()
# VERSIONS
include(global_versioninfo)
# MEGAMOL OPTIONS
include(megamol_options)
###############################
# vislib
###############################
add_subdirectory(${MEGAMOL_VISLIB_DIR})
###############################
# core
###############################
add_subdirectory(${MEGAMOL_CORE_DIR})
###############################
# console
###############################
set(CONSOLE_NAME mmconsole)
add_subdirectory(${MEGAMOL_CONSOLE_DIR})
# add directory structure for visual studio
if(WIN32)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
endif()
###############################
# Plugins
###############################
add_subdirectory(plugins)