summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-02-09 20:44:11 +0100
committerGravatar Jonathan Beck2009-02-09 21:03:02 +0100
commit4278fced578920c4b9c1ffe0862e94d90430b227 (patch)
tree35569f0770f65982854ed81a0e0740f7a751b829 /src
parentfa4a22dde897c0e2a8cc89b7479f0513c9455d37 (diff)
downloadlibplist-4278fced578920c4b9c1ffe0862e94d90430b227.tar.gz
libplist-4278fced578920c4b9c1ffe0862e94d90430b227.tar.bz2
Add a cmake build system.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt17
1 files changed, 17 insertions, 0 deletions
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
+)