diff --git a/CMakeLists.txt b/CMakeLists.txt index 4111a8e..742922f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,7 @@ ADD_SUBDIRECTORY(libpkgconf) INCLUDE_DIRECTORIES(${libpkgconf_BINARY_DIR}) ADD_EXECUTABLE(pkgconf main.c getopt_long.c) TARGET_LINK_LIBRARIES(pkgconf libpkgconf) +INSTALL(TARGETS pkgconf DESTINATION bin) ENABLE_TESTING() diff --git a/libpkgconf/CMakeLists.txt b/libpkgconf/CMakeLists.txt index fa3066c..7ea083d 100644 --- a/libpkgconf/CMakeLists.txt +++ b/libpkgconf/CMakeLists.txt @@ -1,6 +1,6 @@ PROJECT(libpkgconf C) -ADD_LIBRARY(libpkgconf +ADD_LIBRARY(libpkgconf SHARED argvsplit.c audit.c bsdstubs.c @@ -14,3 +14,8 @@ ADD_LIBRARY(libpkgconf queue.c tuple.c ) +INSTALL(TARGETS libpkgconf + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +)