summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
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 /CMakeLists.txt
parentfa4a22dde897c0e2a8cc89b7479f0513c9455d37 (diff)
downloadlibplist-4278fced578920c4b9c1ffe0862e94d90430b227.tar.gz
libplist-4278fced578920c4b9c1ffe0862e94d90430b227.tar.bz2
Add a cmake build system.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..b6fe029
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,22 @@
+PROJECT( libplist )
+
+SET( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_SOURCE_DIR}/cmake/modules )
+
+cmake_minimum_required(VERSION 2.6)
+
+FIND_PACKAGE( LibXml2 REQUIRED )
+FIND_PACKAGE( GLIB2 REQUIRED )
+FIND_PACKAGE( SWIG )
+FIND_PACKAGE( PythonLibs )
+
+INCLUDE_DIRECTORIES( "${CMAKE_CURRENT_SOURCE_DIR}/include" )
+
+ADD_SUBDIRECTORY( src )
+ADD_SUBDIRECTORY( plutil )
+ADD_SUBDIRECTORY( include )
+
+IF ( SWIG_FOUND AND PYTHON_LIBRARY )
+ ADD_SUBDIRECTORY( swig )
+ENDIF ( SWIG_FOUND AND PYTHON_LIBRARY )
+
+CONFIGURE_FILE( "libplist.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libplist.pc" ) \ No newline at end of file