Changeset 185 in pacpusframework for trunk/CMakeLists.txt


Ignore:
Timestamp:
10/23/13 10:32:21 (11 years ago)
Author:
morasjul
Message:

Fixed: dependencies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r175 r185  
    1212
    1313if(POLICY CMP0020)
    14     cmake_policy(SET CMP0020  NEW) # for QT5.1 on windows / not work on linux
     14    cmake_policy(SET CMP0020 NEW) # for QT5.1 on windows / not work on linux
    1515endif()
    1616
    17 # ========================================
     17################################################################################
    1818# Pacpus version
    19 # ========================================
    20 set(PACPUS_MAJOR_VERSION 0)
    21 set(PACPUS_MINOR_VERSION 1)
    22 set(PACPUS_PATCH_VERSION 0)
    23 set(PACPUS_VERSION
    24     "${PACPUS_MAJOR_VERSION}.${PACPUS_MINOR_VERSION}.${PACPUS_PATCH_VERSION}")
     19set(${PROJECT_NAME}_MAJOR_VERSION 0)
     20set(${PROJECT_NAME}_MINOR_VERSION 1)
     21set(${PROJECT_NAME}_PATCH_VERSION 0)
     22set(${PROJECT_NAME}_VERSION
     23    "${${PROJECT_NAME}_MAJOR_VERSION}.${${PROJECT_NAME}_MINOR_VERSION}.${${PROJECT_NAME}_PATCH_VERSION}")
    2524
    26 # ========================================
     25################################################################################
    2726# CMake variables
    28 # ========================================
    2927set(PACPUS_ROOT_DIR         ${CMAKE_SOURCE_DIR})
    3028set(PACPUS_3RD_PARTY_DIR    ${PACPUS_ROOT_DIR}/3rd)
    3129set(PACPUS_CMAKE_DIR        ${PACPUS_ROOT_DIR}/cmake)
    3230set(PACPUS_DOC_DIR          ${PACPUS_ROOT_DIR}/doc)
     31set(PACPUS_EXAMPLES_DIR     ${PACPUS_ROOT_DIR}/examples)
    3332set(PACPUS_INCLUDE_DIR      ${PACPUS_ROOT_DIR}/include/)
    3433set(PACPUS_SCRIPTS_DIR      ${PACPUS_ROOT_DIR}/scripts)
     
    3635set(IS_BUILDING_PACPUS      TRUE)
    3736
    38 # ========================================
     37################################################################################
    3938# Configure CMake
    40 # ========================================
    4139list(APPEND CMAKE_MODULE_PATH ${PACPUS_CMAKE_DIR})
    4240
    43 # ========================================
     41################################################################################
    4442# Import some functions
    45 # ========================================
    4643include(${PACPUS_CMAKE_DIR}/PacpusUtilities.cmake)
    4744
    48 # ========================================
     45################################################################################
    4946# Configure Pacpus
    50 # ========================================
    5147include(${PACPUS_CMAKE_DIR}/PacpusConfiguration.cmake)
    5248
    53 # ========================================
     49################################################################################
    5450# Find dependencies
    55 # ========================================
    5651include(${PACPUS_CMAKE_DIR}/PacpusDependencies.cmake)
    5752
    58 # ========================================
     53################################################################################
    5954# Handle platform-specific behaviour
    60 # ========================================
    6155include(${PACPUS_CMAKE_DIR}/PacpusPlatforms.cmake)
    6256
    63 # ========================================
     57################################################################################
    6458# Compiler flags coming from PacpusDependencies and PacpusPlatforms
    65 # ========================================
    6659#message(STATUS "\${PACPUS_DEFINITIONS} = ${PACPUS_DEFINITIONS}")
    6760add_definitions(${PACPUS_DEFINITIONS})
    6861
    69 # ========================================
    70 # Pre-configuration of the compiler
    71 # ========================================
     62################################################################################
    7263# Includes directories
    7364include_directories(
     
    7667)
    7768
    78 # ========================================
     69################################################################################
    7970# Build the Pacpus' modules
    80 # ========================================
    8171add_subdirectory(${PACPUS_SOURCE_DIR})
    82 if(PACPUS_BUILD_EXAMPLES)
    83     add_subdirectory(examples)
    84 endif()
    8572
    86 # ========================================
    87 # Build the documentation if enabled
    88 # ========================================
     73################################################################################
     74# DOCUMENTATION
    8975if(PACPUS_BUILD_DOC)
    9076    add_subdirectory(${PACPUS_DOC_DIR})
    9177endif()
    9278
    93 # ========================================
     79################################################################################
    9480# Pacpus Installation
    95 # ========================================
    9681include(${PACPUS_CMAKE_DIR}/PacpusInstall.cmake)
    9782set(ENV{PACPUS_ROOT} ${PACPUS_INSTALL_DIR})
    9883
    99 # ========================================
    100 # Summary
    101 # ========================================
     84################################################################################
     85# EXAMPLES
     86if(PACPUS_BUILD_EXAMPLES)
     87    add_subdirectory(${PACPUS_EXAMPLES_DIR})
     88endif()
     89
     90################################################################################
     91# SUMMARY
    10292pacpus_info("")
    10393pacpus_info("=====================================================================")
    104 pacpus_info("Configuration for Pacpus ${PACPUS_VERSION}")
     94pacpus_info("Configuration for Pacpus ${${PROJECT_NAME}_VERSION}")
    10595pacpus_info("=====================================================================")
    10696pacpus_info("")
Note: See TracChangeset for help on using the changeset viewer.