[7] | 1 | #################################################
|
---|
| 2 | # ___________ ____ ______ __ __ _____ #
|
---|
| 3 | # \____ \__ \ _/ ___\\____ \| | \/ ___/ #
|
---|
| 4 | # | |_> > __ \\ \___| |_> > | /\___ \ #
|
---|
| 5 | # | __(____ /\___ > __/|____//____ > #
|
---|
| 6 | # |__| \/ \/|__| \/ #
|
---|
| 7 | # #
|
---|
| 8 | #################################################
|
---|
| 9 |
|
---|
| 10 | # ========================================
|
---|
| 11 | # Output
|
---|
| 12 | # ========================================
|
---|
| 13 | set(PACPUS_DEFINITIONS "")
|
---|
| 14 | set(PACPUS_DEPENDENCIES_INC "")
|
---|
| 15 | set(PACPUS_DEPENDENCIES_LIB "")
|
---|
| 16 |
|
---|
| 17 | # ========================================
|
---|
| 18 | # All the Pacpus' modules depends from Qt4
|
---|
| 19 | # However, since each module requires specific Qt's modules, they have to include their own QT_USE_FILE
|
---|
| 20 | # ========================================
|
---|
| 21 | find_package(Qt4 REQUIRED)
|
---|
| 22 |
|
---|
| 23 | # ========================================
|
---|
[38] | 24 | # Boost
|
---|
| 25 | # Do not use compiled modules, include-only headers.
|
---|
| 26 | # ========================================
|
---|
| 27 | find_package(Boost 1.52.0 REQUIRED)
|
---|
| 28 | list(APPEND PACPUS_DEPENDENCIES_INC ${Boost_INCLUDE_DIRS})
|
---|
| 29 |
|
---|
| 30 | # ========================================
|
---|
[7] | 31 | # log4cxx
|
---|
| 32 | # ========================================
|
---|
| 33 | if (PACPUS_USE_LOG)
|
---|
| 34 | find_package(log4cxx REQUIRED)
|
---|
| 35 |
|
---|
| 36 | list(APPEND PACPUS_DEFINITIONS " -DPACPUS_USE_LOG ")
|
---|
| 37 | list(APPEND PACPUS_DEPENDENCIES_INC ${LOG4CXX_INCLUDE_DIRS})
|
---|
| 38 | list(APPEND PACPUS_DEPENDENCIES_LIB ${LOG4CXX_LIBRARIES})
|
---|
| 39 |
|
---|
| 40 | # If needed, install the dll of log4cxx
|
---|
| 41 | if (WIN32 AND MSVC AND IS_BUILDING_PACPUS)
|
---|
| 42 | pacpus_get_msvc(MSVC_VERSION)
|
---|
| 43 | pacpus_purge_backslash(LOG4CXX_ROOT)
|
---|
| 44 |
|
---|
| 45 | install(
|
---|
| 46 | FILES
|
---|
| 47 | ${LOG4CXX_ROOT}/bin/${MSVC_VERSION}/log4cxx.dll
|
---|
| 48 | ${LOG4CXX_ROOT}/bin/${MSVC_VERSION}/log4cxx_d.dll
|
---|
| 49 | DESTINATION
|
---|
| 50 | ${PACPUS_INSTALL_DIR}/bin
|
---|
| 51 | )
|
---|
| 52 | endif()
|
---|
[26] | 53 | endif()
|
---|
| 54 |
|
---|
| 55 | # ========================================
|
---|
| 56 | # Doxygen
|
---|
| 57 | # ========================================
|
---|
| 58 | if (PACPUS_BUILD_DOC)
|
---|
| 59 | find_package(Doxygen)
|
---|
| 60 | if (NOT DOXYGEN_FOUND)
|
---|
| 61 | message(FATAL_ERROR "Doxygen is needed to build the documentation. Please install it correctly")
|
---|
| 62 | endif()
|
---|
[3] | 63 | endif() |
---|