source: pacpusframework/branches/0.1.x/cmake/PacpusConfiguration.cmake

Last change on this file was 252, checked in by DHERBOMEZ Gérald, 11 years ago

branche 0.1:

  • add installation option with version number of PACPUS
  • compilation on Win32 with Qt4.8.1, boost 1.54 and msvc10 : OK

branche 0.0:

  • minor changes
  • Property svn:executable set to *
File size: 2.0 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9
10# ========================================
11# Build-specific configuration
12# CACHE FILEPATH "Installation directory for the library"
13# ========================================
14if(IS_BUILDING_PACPUS)
15 if(PACPUS_INSTALL_WITH_VERSION_NUMBER)
16 pacpus_purge_backslash(PACPUS_INSTALL_DIR)
17 set(PACPUS_INSTALL_DIR ${PACPUS_INSTALL_DIR}/${PACPUS_VERSION} )
18 endif()
19# set(PACPUS_INSTALL_DIR ${CMAKE_INSTALL_PREFIX} CACHE FILEPATH "Installation directory for the library")
20 set(PACPUS_INSTALL_3RD FALSE CACHE BOOL "Installation of the 3rd party")
21endif()
22
23# ========================================
24# Global configuration
25# ========================================
26set(PACPUS_USE_LOG TRUE CACHE BOOL "Logging using log4cxx, the library is required")
27if(win32)
28 set(PACPUS_INSTALL_3RD TRUE CACHE BOOL "Installation of the 3rd party")
29else()
30 set(PACPUS_INSTALL_3RD FALSE CACHE BOOL "Installation of the 3rd party")
31endif()
32set(PACPUS_BUILD_DOC FALSE CACHE BOOL "Whether build the documentation - requires Doxygen")
33set(PACPUS_BUILD_EXAMPLES FALSE CACHE BOOL "Whether build the examples")
34set(PACPUS_USE_SOLUTION_FOLDERS FALSE CACHE BOOL "Use solution folders to classify projects, works in MS Visual Studio")
35
36set(QT5 FALSE CACHE BOOL " Use Qt5 or Qt4")
37
38if(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()
44endif(PACPUS_USE_SOLUTION_FOLDERS)
Note: See TracBrowser for help on using the repository browser.