Changeset 252 in pacpusframework


Ignore:
Timestamp:
Dec 10, 2013, 5:34:35 PM (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
Location:
branches
Files:
2 added
3 edited

Legend:

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

    r91 r252  
    1111# Build-specific configuration
    1212# ========================================
    13 
    14 # TODO : check how cache variables work? Why the commented line doesn't work?
    15 
    1613if(IS_BUILDING_PACPUS)
    1714        if(PACPUS_INSTALL_WITH_VERSION_NUMBER)
    1815                pacpus_purge_backslash(PACPUS_INSTALL_DIR)
    1916                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")
    2117        endif()
    2218    set(PACPUS_INSTALL_3RD    FALSE                     CACHE BOOL      "Installation of the 3rd party")
  • 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")
  • branches/0.1.x/scripts/build-msvc.bat

    r89 r252  
    4343set LOG4CXX_ROOT=%root_dir%\3rd\apache-log4cxx
    4444:: Initialize the build
    45 cmake .. -DPACPUS_INSTALL_DIR="%1" -DPACPUS_INSTALL_3RD=TRUE -DPACPUS_USE_LOG=TRUE
     45cmake .. -DPACPUS_INSTALL_DIR="%1" -DPACPUS_INSTALL_3RD=TRUE -DPACPUS_USE_LOG=TRUE -DPACPUS_INSTALL_WITH_VERSION_NUMBER=TRUE
    4646:: Build in debug and release
    4747msbuild Pacpus.sln /p:Configuration=Debug
Note: See TracChangeset for help on using the changeset viewer.