[3] | 1 | #################################################
|
---|
| 2 | # ___________ ____ ______ __ __ _____ #
|
---|
| 3 | # \____ \__ \ _/ ___\\____ \| | \/ ___/ #
|
---|
| 4 | # | |_> > __ \\ \___| |_> > | /\___ \ #
|
---|
| 5 | # | __(____ /\___ > __/|____//____ > #
|
---|
| 6 | # |__| \/ \/|__| \/ #
|
---|
| 7 | # #
|
---|
| 8 | #################################################
|
---|
| 9 |
|
---|
| 10 | # ========================================
|
---|
| 11 | # Build-specific configuration
|
---|
| 12 | # ========================================
|
---|
[50] | 13 | if(IS_BUILDING_PACPUS)
|
---|
[91] | 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()
|
---|
[50] | 18 | set(PACPUS_INSTALL_3RD FALSE CACHE BOOL "Installation of the 3rd party")
|
---|
[3] | 19 | endif()
|
---|
| 20 |
|
---|
[91] | 21 |
|
---|
[3] | 22 | # ========================================
|
---|
| 23 | # Global configuration
|
---|
| 24 | # ========================================
|
---|
| 25 | set(PACPUS_USE_LOG TRUE CACHE BOOL "Logging using log4cxx, the library is required")
|
---|
[91] | 26 | if(win32)
|
---|
| 27 | set(PACPUS_INSTALL_3RD TRUE CACHE BOOL "Installation of the 3rd party")
|
---|
| 28 | else()
|
---|
| 29 | set(PACPUS_INSTALL_3RD FALSE CACHE BOOL "Installation of the 3rd party")
|
---|
| 30 | endif()
|
---|
[51] | 31 | set(PACPUS_BUILD_DOC FALSE CACHE BOOL "Whether build the documentation - requires Doxygen")
|
---|
| 32 | set(PACPUS_USE_SOLUTION_FOLDERS FALSE CACHE BOOL "Use solution folders to classify projects, works in MS Visual Studio")
|
---|
| 33 |
|
---|
| 34 | if(PACPUS_USE_SOLUTION_FOLDERS)
|
---|
| 35 | if(CMAKE_VERSION VERSION_GREATER "2.8.0")
|
---|
| 36 | set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
---|
| 37 | else()
|
---|
| 38 | 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")
|
---|
| 39 | endif()
|
---|
| 40 | endif(PACPUS_USE_SOLUTION_FOLDERS) |
---|