From 4278fced578920c4b9c1ffe0862e94d90430b227 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Mon, 9 Feb 2009 20:44:11 +0100 Subject: Add a cmake build system. --- src/CMakeLists.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/CMakeLists.txt (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..d5e6205 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,17 @@ + +INCLUDE_DIRECTORIES( ${LIBXML2_INCLUDE_DIR} ${GLIB2_INCLUDE_DIR} ) + + +SET(libplist_SRC + plist.c + bplist.c + xplist.c ) + +ADD_LIBRARY( plist SHARED ${libplist_SRC} ) +TARGET_LINK_LIBRARIES( plist ${LIBXML2_LIBRARIES} ${GLIB2_LIBRARIES} ) + +INSTALL(TARGETS plist + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) -- cgit v1.1-32-gdbae