forked from hkpeprah/gungi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
26 lines (23 loc) · 849 Bytes
/
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
# Hack to suppress message output when the status is not specified or it is a
# generic status message.
function(message)
list(GET ARGV 0 MessageType)
if(MessageType STREQUAL FATAL_ERROR OR
MessageType STREQUAL SEND_ERROR OR
MessageType STREQUAL WARNING OR
MessageType STREQUAL AUTHOR_WARNING)
list(REMOVE_AT ARGV 0)
_message(${MessageType} "${ARGV}")
endif()
endfunction()
# Keep track of the current directory.
set (ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})
# CMakeLists files in this project can refer to the root source directory of
# the project as '${GUNGI_SOURCE_DIR}' and to the root binary directory of
# the project as '${GUNGI_BINARY_DIR}'.
cmake_minimum_required (VERSION 3.4.1)
project (GUNGI)
# Recurse into the subdirectories.
add_subdirectory (submodules)
add_subdirectory (gungi)
add_subdirectory (demo)