[3] | 1 | #################################################
|
---|
| 2 | # ___________ ____ ______ __ __ _____ #
|
---|
| 3 | # \____ \__ \ _/ ___\\____ \| | \/ ___/ #
|
---|
| 4 | # | |_> > __ \\ \___| |_> > | /\___ \ #
|
---|
| 5 | # | __(____ /\___ > __/|____//____ > #
|
---|
| 6 | # |__| \/ \/|__| \/ #
|
---|
| 7 | # #
|
---|
| 8 | #################################################
|
---|
| 9 |
|
---|
| 10 | # ========================================
|
---|
| 11 | # Build-specific configuration
|
---|
| 12 | # ========================================
|
---|
[91] | 13 |
|
---|
| 14 | # TODO : check how cache variables work? Why the commented line doesn't work?
|
---|
| 15 |
|
---|
[50] | 16 | if(IS_BUILDING_PACPUS)
|
---|
[91] | 17 | if(PACPUS_INSTALL_WITH_VERSION_NUMBER)
|
---|
| 18 | pacpus_purge_backslash(PACPUS_INSTALL_DIR)
|
---|
| 19 | set(PACPUS_INSTALL_DIR ${PACPUS_INSTALL_DIR}/${PACPUS_VERSION})
|
---|
| 20 | # set(PACPUS_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/${PACPUS_VERSION} CACHE PATH "Installation directory for the library")
|
---|
| 21 | endif()
|
---|
[50] | 22 | set(PACPUS_INSTALL_3RD FALSE CACHE BOOL "Installation of the 3rd party")
|
---|
[3] | 23 | endif()
|
---|
| 24 |
|
---|
[91] | 25 |
|
---|
[3] | 26 | # ========================================
|
---|
| 27 | # Global configuration
|
---|
| 28 | # ========================================
|
---|
| 29 | set(PACPUS_USE_LOG TRUE CACHE BOOL "Logging using log4cxx, the library is required")
|
---|
[91] | 30 | if(win32)
|
---|
| 31 | set(PACPUS_INSTALL_3RD TRUE CACHE BOOL "Installation of the 3rd party")
|
---|
| 32 | else()
|
---|
| 33 | set(PACPUS_INSTALL_3RD FALSE CACHE BOOL "Installation of the 3rd party")
|
---|
| 34 | endif()
|
---|
[51] | 35 | set(PACPUS_BUILD_DOC FALSE CACHE BOOL "Whether build the documentation - requires Doxygen")
|
---|
| 36 | set(PACPUS_USE_SOLUTION_FOLDERS FALSE CACHE BOOL "Use solution folders to classify projects, works in MS Visual Studio")
|
---|
| 37 |
|
---|
| 38 | if(PACPUS_USE_SOLUTION_FOLDERS)
|
---|
| 39 | if(CMAKE_VERSION VERSION_GREATER "2.8.0")
|
---|
| 40 | set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
---|
| 41 | else()
|
---|
| 42 | 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")
|
---|
| 43 | endif()
|
---|
| 44 | endif(PACPUS_USE_SOLUTION_FOLDERS) |
---|