-
Notifications
You must be signed in to change notification settings - Fork 28
/
Options.cmake
26 lines (20 loc) · 917 Bytes
/
Options.cmake
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
# =====================================================
# Public Domain: Inspired by github.com/KjellKod/g3log/Options.cmake 2020,
# @author Kjell.Hedstrom
# =====================================================
# STATIC/SHARED SETUP - KJELLKOD TEST THIS BETTER
option(CHOICE_BUILD_STATIC
"Building sinks as static libraries. Linking with static g3log library"
OFF)
option(CHOICE_BUILD_DEBUG "Build for DEBUG" OFF)
# TEST, EXAMPLES SETUP
option(CHOICE_BUILD_TESTS "Build the unit tests" ON)
option(CHOICE_BUILD_EXAMPLES "Build the examples" ON)
# SINKS
option(CHOICE_SINK_LOGROTATE "Build the logrotate sink" ON)
option(CHOICE_SINK_SYSLOG "Build the syslog sink" ON)
option(CHOICE_SINK_SNIPPETS "Build the syslog sink" ON)
if(CHOICE_BUILD_TESTS)
enable_testing()
endif()
option(CHOICE_INSTALL_G3SINKS "Enable installation of g3sinks. (Projects embedding g3sinks may want to turn this OFF.)" ON)