First draft of cmake install rules
parent
4d7b4d7c8e
commit
8b4a4b831b
|
@ -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()
|
||||
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue