diff options
Diffstat (limited to 'libqmenumodel/src/CMakeLists.txt')
-rw-r--r-- | libqmenumodel/src/CMakeLists.txt | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/libqmenumodel/src/CMakeLists.txt b/libqmenumodel/src/CMakeLists.txt index 435b412..e3d65a1 100644 --- a/libqmenumodel/src/CMakeLists.txt +++ b/libqmenumodel/src/CMakeLists.txt @@ -10,11 +10,12 @@ set(QMENUMODEL_SRC qstateaction.cpp ) -add_library(qmenumodel SHARED +set(SHAREDLIBNAME qmenumodel) +add_library(${SHAREDLIBNAME} SHARED ${QMENUMODEL_SRC} ) -set_target_properties(qmenumodel PROPERTIES +set_target_properties(${SHAREDLIBNAME} PROPERTIES COMPILE_FLAGS -fPIC SOVERSION 0 VERSION 0.1.1 @@ -24,9 +25,9 @@ include_directories( ${GLIB_INCLUDE_DIRS} ) -qt5_use_modules(qmenumodel Core Widgets) +qt5_use_modules(${SHAREDLIBNAME} Core Widgets) -install(TARGETS qmenumodel LIBRARY DESTINATION lib${LIB_SUFFIX}) +install(TARGETS ${SHAREDLIBNAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) set(QMENUMODEL_HEADERS dbus-enums.h @@ -37,7 +38,14 @@ set(QMENUMODEL_HEADERS qstateaction.h ) +set(INCLUDEDIR qmenumodel) install(FILES ${QMENUMODEL_HEADERS} - DESTINATION include/qmenumodel + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${INCLUDEDIR} +) + +set(PCFILE qmenumodel.pc) +configure_file(${PCFILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${PCFILE} @ONLY) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PCFILE} + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig ) |