-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (20 loc) · 761 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
27
28
29
30
31
32
33
cmake_minimum_required (VERSION 3.0.0)
project (logginglibrary)
include ( cmake/dist.cmake )
set(LOGLIB_VERSION_MAJOR "0")
set(LOGLIB_VERSION_MINOR "0")
set(LOGLIB_VERSION_PATCH "1")
set(LOGLIB_VERSION_EXTRA "")
set(LOGLIB_VERSION "${LOGLIB_VERSION_MAJOR}.${LOGLIB_VERSION_MINOR}")
set(LOGLIB_VERSION_FULL "${LOGLIB_VERSION}.${LOGLIB_VERSION_PATCH}${LOGLIB_VERSION_EXTRA}")
#set_property(GLOBAL PROPERTY USE_FOLDERS ON)
SET(logginglib_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/library" )
option(LOGGINGLIB_BUILD_EXAMPLES "Build the LOGLIBs example programs" OFF)
if (BUILD_SHARED_LIBS)
set(_LOGLIB_BUILD_DLL 1)
endif()
#compilerflags ??? MSVC see glfw
add_subdirectory (library)
if (LOGGINGLIB_BUILD_EXAMPLES)
add_subdirectory (examples)
endif()