[89] | 1 | #################################################
|
---|
| 2 | # ___________ ____ ______ __ __ _____ #
|
---|
| 3 | # \____ \__ \ _/ ___\\____ \| | \/ ___/ #
|
---|
| 4 | # | |_> > __ \\ \___| |_> > | /\___ \ #
|
---|
| 5 | # | __(____ /\___ > __/|____//____ > #
|
---|
| 6 | # |__| \/ \/|__| \/ #
|
---|
| 7 | # #
|
---|
| 8 | #################################################
|
---|
| 9 |
|
---|
| 10 | # ========================================
|
---|
| 11 | # Build-specific configuration
|
---|
| 12 | # ========================================
|
---|
| 13 | if(IS_BUILDING_PACPUS)
|
---|
| 14 | set(PACPUS_INSTALL_DIR ${CMAKE_INSTALL_PREFIX} CACHE FILEPATH "Installation directory for the library")
|
---|
| 15 | set(PACPUS_INSTALL_3RD FALSE CACHE BOOL "Installation of the 3rd party")
|
---|
| 16 | endif()
|
---|
| 17 |
|
---|
| 18 | # ========================================
|
---|
| 19 | # Global configuration
|
---|
| 20 | # ========================================
|
---|
[236] | 21 | set(PACPUS_USE_LOG TRUE CACHE BOOL "Logging using Boost.Log, the library is required")
|
---|
| 22 | set(PACPUS_LOG_COLORED_OUTPUT FALSE CACHE BOOL "Logging in color.")
|
---|
[89] | 23 | set(PACPUS_INSTALL_3RD FALSE CACHE BOOL "Installation of the 3rd party")
|
---|
| 24 | set(PACPUS_BUILD_DOC FALSE CACHE BOOL "Whether build the documentation - requires Doxygen")
|
---|
[163] | 25 | set(PACPUS_BUILD_EXAMPLES FALSE CACHE BOOL "Whether build the examples")
|
---|
[89] | 26 | set(PACPUS_USE_SOLUTION_FOLDERS FALSE CACHE BOOL "Use solution folders to classify projects, works in MS Visual Studio")
|
---|
| 27 |
|
---|
| 28 | if(PACPUS_USE_SOLUTION_FOLDERS)
|
---|
| 29 | if(CMAKE_VERSION VERSION_GREATER "2.8.0")
|
---|
| 30 | set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
---|
| 31 | else()
|
---|
| 32 | 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")
|
---|
| 33 | endif()
|
---|
[119] | 34 | endif(PACPUS_USE_SOLUTION_FOLDERS)
|
---|
[236] | 35 |
|
---|
[239] | 36 |
|
---|
| 37 | if(PACPUS_USE_LOG)
|
---|
| 38 | list(APPEND PACPUS_DEFINITIONS " -DPACPUS_USE_LOG=1 ")
|
---|
| 39 | endif()
|
---|
| 40 |
|
---|
[236] | 41 | if(PACPUS_LOG_COLORED_OUTPUT)
|
---|
| 42 | list(APPEND PACPUS_DEFINITIONS " -DPACPUS_LOG_COLORED_OUTPUT=1 ")
|
---|
| 43 | endif()
|
---|