First draft of cmake install rules

pull/119/head
Dan Kegel 2017-06-04 19:32:08 -07:00
parent 4d7b4d7c8e
commit 8b4a4b831b
2 changed files with 7 additions and 1 deletions

View File

@ -36,6 +36,7 @@ ADD_SUBDIRECTORY(libpkgconf)
INCLUDE_DIRECTORIES(${libpkgconf_BINARY_DIR}) INCLUDE_DIRECTORIES(${libpkgconf_BINARY_DIR})
ADD_EXECUTABLE(pkgconf main.c getopt_long.c) ADD_EXECUTABLE(pkgconf main.c getopt_long.c)
TARGET_LINK_LIBRARIES(pkgconf libpkgconf) TARGET_LINK_LIBRARIES(pkgconf libpkgconf)
INSTALL(TARGETS pkgconf DESTINATION bin)
ENABLE_TESTING() ENABLE_TESTING()

View File

@ -1,6 +1,6 @@
PROJECT(libpkgconf C) PROJECT(libpkgconf C)
ADD_LIBRARY(libpkgconf ADD_LIBRARY(libpkgconf SHARED
argvsplit.c argvsplit.c
audit.c audit.c
bsdstubs.c bsdstubs.c
@ -14,3 +14,8 @@ ADD_LIBRARY(libpkgconf
queue.c queue.c
tuple.c tuple.c
) )
INSTALL(TARGETS libpkgconf
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)