cmake: Replace libstick by ${PACKAGE_STRING}
[libstick.git] / lib / CMakeLists.txt
index 2d03559f024a50911b77dc70861ef7f8fd86dbd2..6432c9ccd12bf7840f66d1d410771de18008907e 100644 (file)
@@ -1,10 +1,9 @@
-set(stick_SRC test.cc)
+#set(stick_SRC test.cc)
 
-include_directories(${libstick_SOURCE_DIR}/include)
+#include_directories(${libstick_SOURCE_DIR}/include)
 
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libstick.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libstick.pc @ONLY)
+#add_library(stick SHARED ${stick_SRC})
+#install(TARGETS stick DESTINATION lib)
 
-add_library(stick SHARED ${stick_SRC})
-
-install(TARGETS stick DESTINATION lib)
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libstick.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")