]> git.sthu.org Git - libstick.git/commitdiff
cmake: Replace libstick by ${PACKAGE_STRING}
authorStefan Huber <shuber@sthu.org>
Thu, 27 Nov 2014 11:44:05 +0000 (12:44 +0100)
committerStefan Huber <shuber@sthu.org>
Thu, 27 Nov 2014 11:44:05 +0000 (12:44 +0100)
include/CMakeLists.txt
lib/CMakeLists.txt
lib/pkgconfig.pc.cmake [moved from lib/libstick.pc.cmake with 100% similarity]

index abe8362a94dd07a22646b87a24358ea66bbc7a2b..da68f9b66aeef9a6c0cb959d3df4e88801d387e3 100644 (file)
@@ -1 +1 @@
-install (DIRECTORY ./ DESTINATION include/libstick-${PACKAGE_VERSION} FILES_MATCHING PATTERN "*.h")
+install (DIRECTORY ./ DESTINATION include/${PACKAGE_STRING}-${PACKAGE_VERSION} FILES_MATCHING PATTERN "*.h")
index 788f09c968c1453a2c33c2376bb3011dc0aa4c56..6432c9ccd12bf7840f66d1d410771de18008907e 100644 (file)
@@ -5,5 +5,5 @@
 #add_library(stick SHARED ${stick_SRC})
 #install(TARGETS stick DESTINATION lib)
 
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libstick.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libstick-${PACKAGE_VERSION}.pc @ONLY)
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libstick-${PACKAGE_VERSION}.pc DESTINATION lib/pkgconfig COMPONENT "pkgconfig")
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_STRING}-${PACKAGE_VERSION}.pc @ONLY)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_STRING}-${PACKAGE_VERSION}.pc DESTINATION lib/pkgconfig COMPONENT "pkgconfig")
similarity index 100%
rename from lib/libstick.pc.cmake
rename to lib/pkgconfig.pc.cmake