Changeset 252 in pacpusframework for branches/0.1.x/cmake/PacpusConfiguration.cmake


Ignore:
Timestamp:
12/10/13 17:34:35 (11 years ago)
Author:
DHERBOMEZ Gérald
Message:

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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.1.x/cmake/PacpusConfiguration.cmake

    r163 r252  
    99
    1010# ========================================
    11 # Build-specific configuration
     11# Build-specific configuration
     12# CACHE FILEPATH "Installation directory for the library"
    1213# ========================================
    1314if(IS_BUILDING_PACPUS)
    14     set(PACPUS_INSTALL_DIR    ${CMAKE_INSTALL_PREFIX}   CACHE FILEPATH "Installation directory for the library")
     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")
    1520    set(PACPUS_INSTALL_3RD    FALSE                     CACHE BOOL      "Installation of the 3rd party")
    1621endif()
     
    2025# ========================================
    2126set(PACPUS_USE_LOG      TRUE  CACHE BOOL "Logging using log4cxx, the library is required")
    22 set(PACPUS_INSTALL_3RD  FALSE CACHE BOOL "Installation of the 3rd party")
     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()
    2332set(PACPUS_BUILD_DOC    FALSE CACHE BOOL "Whether build the documentation - requires Doxygen")
    2433set(PACPUS_BUILD_EXAMPLES FALSE CACHE BOOL "Whether build the examples")
Note: See TracChangeset for help on using the changeset viewer.