Changeset 175 in pacpusframework


Ignore:
Timestamp:
Oct 8, 2013, 5:00:20 PM (11 years ago)
Author:
morasjul
Message:

[cmake] Fixed: Qt5 dependencies on Windows.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r172 r175  
    9595# ========================================
    9696include(${PACPUS_CMAKE_DIR}/PacpusInstall.cmake)
    97 set( ENV{PACPUS_ROOT} ${PACPUS_INSTALL_DIR} )
     97set(ENV{PACPUS_ROOT} ${PACPUS_INSTALL_DIR})
    9898
    9999# ========================================
  • trunk/cmake/PacpusDependencies.cmake

    r151 r175  
    2525
    2626if(PACPUS_USE_QT5)
    27 message(STATUS "Set CMake variable 'CMAKE_PREFIX_PATH' to the path like '%QT_BIN%/../lib/cmake'")
     27    # message(STATUS "Set CMake variable 'CMAKE_PREFIX_PATH' to the path like '%QT_BIN%/../lib/cmake'")
     28    set(QT_CMAKE_DIR "$ENV{QT_BIN}/../lib/cmake")
     29    get_filename_component(QT_CMAKE_DIR "${QT_CMAKE_DIR}" ABSOLUTE)
     30    message(STATUS "\${QT_CMAKE_DIR} = '${QT_CMAKE_DIR}'")
     31    list(APPEND CMAKE_PREFIX_PATH
     32        ${QT_CMAKE_DIR}
     33    )
     34    if(WIN32)
     35        message(STATUS "Environment variable 'WINSDK_LIB' should be set to something like 'C:/Program Files (x86)/Windows Kits/8.0/Lib/win8/um/x86'")
     36        message(STATUS "\$ENV{WINSDK_LIB} = '$ENV{WINSDK_LIB}'")
     37        list(APPEND CMAKE_PREFIX_PATH
     38            $ENV{WINSDK_LIB}
     39        )
     40    endif()
    2841# ========================================
    2942# All the Pacpus modules depend on Qt5
Note: See TracChangeset for help on using the changeset viewer.