extragear/sdk
Niko Sams
niko.sams at gmail.com
Sun Jan 24 12:22:03 UTC 2010
SVN commit 1079521 by nsams:
Add CMakeLists.txt for kdevelop-plugins, making it possible the build the
whole sdk including kdevelop-plugins.
Please review, esp. the part I copied into kdevelop-plugins/php(-docs)/CMakeLists.txt
CCMAIL: kdevelop-devel at kdevelop.org
M +1 -0 CMakeLists.txt
AM kdevelop-plugins/CMakeLists.txt
M +25 -2 kdevelop-plugins/php-docs/CMakeLists.txt
M +25 -2 kdevelop-plugins/php/CMakeLists.txt
--- trunk/extragear/sdk/CMakeLists.txt #1079520:1079521
@@ -10,6 +10,7 @@
macro_optional_add_subdirectory(kdevplatform)
macro_optional_add_subdirectory(kdevelop)
+macro_optional_add_subdirectory(kdevelop-plugins)
macro_optional_add_subdirectory(kxsldbg)
macro_optional_add_subdirectory(quanta)
macro_optional_add_subdirectory(doc)
** trunk/extragear/sdk/kdevelop-plugins/CMakeLists.txt #property svn:eol-style
+ native
--- trunk/extragear/sdk/kdevelop-plugins/php-docs/CMakeLists.txt #1079520:1079521
@@ -5,9 +5,32 @@
find_package(KDE4 REQUIRED)
-find_package(KDevPlatform REQUIRED)
+if( extragear-sdk_SOURCE_DIR )
+ if ( ${extragear-sdk_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR} )
+ set( KDEVPLATFORM_FOUND TRUE )
+ include_directories( ${CMAKE_SOURCE_DIR}/kdevplatform )
+ set( KDEVPLATFORM_INTERFACES_LIBRARIES kdevplatforminterfaces )
+ set( KDEVPLATFORM_SHELL_LIBRARIES kdevplatformshell )
+ set( KDEVPLATFORM_TESTS_LIBRARIES kdevplatformtests )
+ set( KDEVPLATFORM_UTIL_LIBRARIES kdevplatformutil )
+ set( KDEVPLATFORM_PROJECT_LIBRARIES kdevplatformproject )
+ set( KDEVPLATFORM_OUTPUTVIEW_LIBRARIES kdevplatformoutputview )
+ set( KDEVPLATFORM_LANGUAGE_LIBRARIES kdevplatformlanguage )
+ set( KDEVPLATFORM_VCS_LIBRARIES kdevplatformvcs )
+ set( KDEVPLATFORM_DEBUGGER_LIBRARIES kdevplatformdebugger )
+ set( KDEVPLATFORM_SUBLIME_LIBRARIES sublime )
+ include( ${CMAKE_SOURCE_DIR}/kdevplatform/cmake/modules/KDevPlatformMacros.cmake )
+ endif ( ${extragear-sdk_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR} )
+endif( extragear-sdk_SOURCE_DIR )
+
+if( NOT KDEVPLATFORM_FOUND )
+
+ find_package(KDevPlatform REQUIRED)
+ include_directories(${KDEVPLATFORM_INCLUDE_DIR})
+
+endif( NOT KDEVPLATFORM_FOUND )
+
include_directories(
- ${KDEVPLATFORM_INCLUDE_DIR}
${KDE4_INCLUDES}
${KDE4_INCLUDE_DIR}/threadweaver
${CMAKE_CURRENT_BINARY_DIR}
--- trunk/extragear/sdk/kdevelop-plugins/php/CMakeLists.txt #1079520:1079521
@@ -9,9 +9,32 @@
#complain about the FindKDevelop-PG.cmake file not findable.
find_package(KDE4 REQUIRED)
-find_package(KDevPlatform REQUIRED)
+if( extragear-sdk_SOURCE_DIR )
+ if ( ${extragear-sdk_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR} )
+ set( KDEVPLATFORM_FOUND TRUE )
+ include_directories( ${CMAKE_SOURCE_DIR}/kdevplatform )
+ set( KDEVPLATFORM_INTERFACES_LIBRARIES kdevplatforminterfaces )
+ set( KDEVPLATFORM_SHELL_LIBRARIES kdevplatformshell )
+ set( KDEVPLATFORM_TESTS_LIBRARIES kdevplatformtests )
+ set( KDEVPLATFORM_UTIL_LIBRARIES kdevplatformutil )
+ set( KDEVPLATFORM_PROJECT_LIBRARIES kdevplatformproject )
+ set( KDEVPLATFORM_OUTPUTVIEW_LIBRARIES kdevplatformoutputview )
+ set( KDEVPLATFORM_LANGUAGE_LIBRARIES kdevplatformlanguage )
+ set( KDEVPLATFORM_VCS_LIBRARIES kdevplatformvcs )
+ set( KDEVPLATFORM_DEBUGGER_LIBRARIES kdevplatformdebugger )
+ set( KDEVPLATFORM_SUBLIME_LIBRARIES sublime )
+ include( ${CMAKE_SOURCE_DIR}/kdevplatform/cmake/modules/KDevPlatformMacros.cmake )
+ endif ( ${extragear-sdk_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR} )
+endif( extragear-sdk_SOURCE_DIR )
+
+if( NOT KDEVPLATFORM_FOUND )
+
+ find_package(KDevPlatform 0.9.97 REQUIRED)
+ include_directories(${KDEVPLATFORM_INCLUDE_DIR})
+
+endif( NOT KDEVPLATFORM_FOUND )
+
include_directories(
- ${KDEVPLATFORM_INCLUDE_DIR}
${KDE4_INCLUDES}
${KDE4_INCLUDE_DIR}/threadweaver
${CMAKE_CURRENT_BINARY_DIR}
More information about the KDevelop-devel
mailing list