[Uml-devel] branches/work/soc-umbrello
Gopala Krishna A
krishna.ggk at gmail.com
Wed Apr 29 14:32:59 UTC 2009
SVN commit 961120 by gopala:
* Allow easier individual soc-umbrello builds by adding cmake commands to find
kde, libxslt and libxml to soc-umbrello/CMakeLists.txt
M +24 -1 CMakeLists.txt
--- branches/work/soc-umbrello/CMakeLists.txt #961119:961120
@@ -1,3 +1,26 @@
project(umbrello)
-add_subdirectory( umbrello )
+set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
+# search packages used by KDE
+find_package(KDE4 REQUIRED)
+include(KDE4Defaults)
+include(MacroLibrary)
+include(CheckIncludeFile)
+include(CheckIncludeFileCXX)
+include(CheckLibraryExists)
+
+# The FindKDE4.cmake module sets _KDE4_PLATFORM_DEFINITIONS with
+# definitions like _GNU_SOURCE that are needed on each platform.
+set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS} -DQT_STRICT_ITERATORS)
+
+find_package(LibXslt REQUIRED)
+find_package(LibXml2 REQUIRED)
+
+set(Boost_MINIMUM_VERSION 1.33.1)
+find_package(Boost REQUIRED)
+
+add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DQT3_SUPPORT)
+include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} )
+
+add_subdirectory(umbrello)
+
More information about the umbrello-devel
mailing list