1 | #################################################
|
---|
2 | # ___________ ____ ______ __ __ _____ #
|
---|
3 | # \____ \__ \ _/ ___\\____ \| | \/ ___/ #
|
---|
4 | # | |_> > __ \\ \___| |_> > | /\___ \ #
|
---|
5 | # | __(____ /\___ > __/|____//____ > #
|
---|
6 | # |__| \/ \/|__| \/ #
|
---|
7 | # #
|
---|
8 | #################################################
|
---|
9 |
|
---|
10 | # ========================================
|
---|
11 | # Build-specific configuration
|
---|
12 | # ========================================
|
---|
13 | if(IS_BUILDING_PACPUS)
|
---|
14 | if(PACPUS_INSTALL_WITH_VERSION_NUMBER)
|
---|
15 | pacpus_purge_backslash(PACPUS_INSTALL_DIR)
|
---|
16 | set(PACPUS_INSTALL_DIR ${PACPUS_INSTALL_DIR}/${Pacpus_VERSION} )
|
---|
17 | endif()
|
---|
18 | set(PACPUS_INSTALL_3RD FALSE CACHE BOOL "Installation of the 3rd party")
|
---|
19 | endif()
|
---|
20 |
|
---|
21 | # ========================================
|
---|
22 | # Global configuration
|
---|
23 | # ========================================
|
---|
24 | set(PACPUS_USE_LOG TRUE CACHE BOOL "Logging using Boost.Log, the library is required")
|
---|
25 | set(PACPUS_LOG_COLORED_OUTPUT TRUE CACHE BOOL "Logging in color.")
|
---|
26 | set(PACPUS_INSTALL_3RD FALSE CACHE BOOL "Installation of the 3rd party")
|
---|
27 | set(PACPUS_BUILD_DOC FALSE CACHE BOOL "Whether build the documentation - requires Doxygen")
|
---|
28 | set(PACPUS_BUILD_EXAMPLES TRUE CACHE BOOL "Whether build the examples")
|
---|
29 | set(PACPUS_USE_SOLUTION_FOLDERS TRUE CACHE BOOL "Use solution folders to classify projects, works in MS Visual Studio")
|
---|
30 |
|
---|
31 | if(PACPUS_USE_SOLUTION_FOLDERS)
|
---|
32 | if(CMAKE_VERSION VERSION_GREATER "2.8.0")
|
---|
33 | set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
---|
34 | else()
|
---|
35 | message(AUTHOR_WARNING "Folders are only supported with CMake 2.8.0 and newer, and MSVC 2005 and newer except for 2005/2008/2010 Express Edition")
|
---|
36 | endif()
|
---|
37 | endif(PACPUS_USE_SOLUTION_FOLDERS)
|
---|
38 |
|
---|
39 |
|
---|
40 | if(PACPUS_USE_LOG)
|
---|
41 | list(APPEND PACPUS_DEFINITIONS " -DPACPUS_USE_LOG=1 ")
|
---|
42 | endif()
|
---|
43 |
|
---|
44 | if(PACPUS_LOG_COLORED_OUTPUT)
|
---|
45 | list(APPEND PACPUS_DEFINITIONS " -DPACPUS_LOG_COLORED_OUTPUT=1 ")
|
---|
46 | endif()
|
---|