pkgconf/libpkgconf/CMakeLists.txt

37 lines
977 B
CMake
Raw Normal View History

2017-06-04 22:17:51 +00:00
PROJECT(libpkgconf C)
# 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
parser.c
2017-06-04 22:17:51 +00:00
path.c
personality.c
2017-06-04 22:17:51 +00:00
pkg.c
queue.c
tuple.c
)
2017-06-06 03:54:57 +00:00
SET_TARGET_PROPERTIES(libpkgconf PROPERTIES VERSION ${LIBPKGCONF_VERSION} SOVERSION ${LIBPKGCONF_SOVERSION})
2017-06-05 02:32:08 +00:00
INSTALL(TARGETS libpkgconf
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
INSTALL(
FILES bsdstubs.h iter.h libpkgconf.h libpkgconf-api.h stdinc.h
DESTINATION include/libpkgconf
)
# Hypothesis: .pc files are a Unix thing, should always have unix line endings.
CONFIGURE_FILE(${pkgconf_SOURCE_DIR}/libpkgconf.pc.in libpkgconf.pc @ONLY NEWLINE_STYLE UNIX)
INSTALL(FILES ${libpkgconf_BINARY_DIR}/libpkgconf.pc DESTINATION lib/pkgconfig)