2017-06-04 22:17:51 +00:00
|
|
|
PROJECT(libpkgconf C)
|
|
|
|
|
2017-06-05 21:00:02 +00:00
|
|
|
# Enforce visibiliity restrictions when building shared libraries on Unix.
|
|
|
|
SET(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
|
|
|
ADD_DEFINITIONS(-DLIBPKGCONF_EXPORT)
|
|
|
|
|
2017-06-05 02:32:08 +00:00
|
|
|
ADD_LIBRARY(libpkgconf SHARED
|
2017-06-04 22:17:51 +00:00
|
|
|
argvsplit.c
|
|
|
|
audit.c
|
|
|
|
bsdstubs.c
|
|
|
|
cache.c
|
|
|
|
client.c
|
|
|
|
dependency.c
|
|
|
|
fileio.c
|
|
|
|
fragment.c
|
|
|
|
path.c
|
|
|
|
pkg.c
|
|
|
|
queue.c
|
|
|
|
tuple.c
|
|
|
|
)
|
2017-06-05 02:32:08 +00:00
|
|
|
INSTALL(TARGETS libpkgconf
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
)
|
2017-06-05 17:23:56 +00:00
|
|
|
SET_TARGET_PROPERTIES(libpkgconf PROPERTIES VERSION "2.0.0" SOVERSION 2)
|