diff --git a/private/qtjolie-branch/qtjolie/CMakeLists.txt b/private/qtjolie-branch/qtjolie/CMakeLists.txt index ff4539164..a21e04efa 100644 --- a/private/qtjolie-branch/qtjolie/CMakeLists.txt +++ b/private/qtjolie-branch/qtjolie/CMakeLists.txt @@ -46,3 +46,6 @@ if(NOT WIN32) # pkgconfig file configure_file(${CMAKE_CURRENT_SOURCE_DIR}/QtJolie.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/QtJolie.pc @ONLY) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/QtJolie.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) endif(NOT WIN32) + +configure_file("QtJolie.prf.cmake" "${CMAKE_BINARY_DIR}/QtJolie.prf" @ONLY) +install(FILES "${CMAKE_BINARY_DIR}/QtJolie.prf" DESTINATION ${CMAKE_INSTALL_PREFIX}/mkspecs/features) diff --git a/private/qtjolie-branch/qtjolie/QtJolie.prf.cmake b/private/qtjolie-branch/qtjolie/QtJolie.prf.cmake new file mode 100644 index 000000000..333c50a85 --- /dev/null +++ b/private/qtjolie-branch/qtjolie/QtJolie.prf.cmake @@ -0,0 +1,13 @@ +QTJOLIE_INCDIR = @INCLUDE_INSTALL_DIR@ +QTJOLIE_LIBDIR = @LIB_INSTALL_DIR@ + +CONFIG *= qt +INCLUDEPATH += $$QTJOLIE_INCDIR +LIBS += -L$$QTJOLIE_LIBDIR + +LINKAGE = -llibQtJolie +CONFIG(debug, debug|release) { + windows:LINKAGE = -llibQtJolied + mac:LINKAGE = -llibQtJolie_debug +} +LIBS += $$LINKAGE