diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-23 20:22:40 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-23 20:22:40 +0000 |
commit | cf21ddc3cce570e574364e841758b59c0f8e8e04 (patch) | |
tree | 9f79e4569bb2991b4de8c25dd23795126ac0914c /buildtools/lib | |
parent | f9c30e41d26594598abaa8315c4488b6c5ff38ea (diff) | |
download | tdevelop-cf21ddc3cce570e574364e841758b59c0f8e8e04.tar.gz tdevelop-cf21ddc3cce570e574364e841758b59c0f8e8e04.zip |
[kdevelop] initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1216516 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'buildtools/lib')
-rw-r--r-- | buildtools/lib/CMakeLists.txt | 14 | ||||
-rw-r--r-- | buildtools/lib/base/CMakeLists.txt | 40 | ||||
-rw-r--r-- | buildtools/lib/parsers/CMakeLists.txt | 13 | ||||
-rw-r--r-- | buildtools/lib/parsers/autotools/CMakeLists.txt | 24 | ||||
-rw-r--r-- | buildtools/lib/parsers/qmake/CMakeLists.txt | 39 | ||||
-rw-r--r-- | buildtools/lib/widgets/CMakeLists.txt | 55 |
6 files changed, 185 insertions, 0 deletions
diff --git a/buildtools/lib/CMakeLists.txt b/buildtools/lib/CMakeLists.txt new file mode 100644 index 00000000..b23bd2e7 --- /dev/null +++ b/buildtools/lib/CMakeLists.txt @@ -0,0 +1,14 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( parsers ) +add_subdirectory( widgets ) +add_subdirectory( base ) diff --git a/buildtools/lib/base/CMakeLists.txt b/buildtools/lib/base/CMakeLists.txt new file mode 100644 index 00000000..1f3e9fbf --- /dev/null +++ b/buildtools/lib/base/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/lib/interfaces + ${CMAKE_SOURCE_DIR}/lib/interfaces/extensions + ${CMAKE_SOURCE_DIR}/lib/util + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + kdevbuildtool.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kdevelop/buildtools/base ) + + +##### kdevbuildbase (shared) #################### + +tde_add_library( kdevbuildbase SHARED AUTOMOC + SOURCES kdevbuildtool.cpp + VERSION 0.0.0 + LINK kdevelop-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/buildtools/lib/parsers/CMakeLists.txt b/buildtools/lib/parsers/CMakeLists.txt new file mode 100644 index 00000000..45157a98 --- /dev/null +++ b/buildtools/lib/parsers/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( qmake ) +add_subdirectory( autotools ) diff --git a/buildtools/lib/parsers/autotools/CMakeLists.txt b/buildtools/lib/parsers/autotools/CMakeLists.txt new file mode 100644 index 00000000..8226e963 --- /dev/null +++ b/buildtools/lib/parsers/autotools/CMakeLists.txt @@ -0,0 +1,24 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + + +##### kdevautotoolsparser (static) ############## + +tde_add_library( kdevautotoolsparser STATIC_PIC + SOURCES + autotoolsast.cpp autotoolsdriver.cpp autotools_yacc.cpp +) diff --git a/buildtools/lib/parsers/qmake/CMakeLists.txt b/buildtools/lib/parsers/qmake/CMakeLists.txt new file mode 100644 index 00000000..00898d3c --- /dev/null +++ b/buildtools/lib/parsers/qmake/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + qmakeast.h qmakedriver.h qmakeastvisitor.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kdevelop/buildtools/parsers/qmake ) + + +##### kdevqmakeparser (shared) ################## + +tde_add_library( kdevqmakeparser SHARED + SOURCES + qmake_lex.cpp qmake_yacc.cpp qmakeast.cpp + qmakeastvisitor.cpp qmakedriver.cpp + VERSION 0.0.0 + LINK kio-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/buildtools/lib/widgets/CMakeLists.txt b/buildtools/lib/widgets/CMakeLists.txt new file mode 100644 index 00000000..f892964b --- /dev/null +++ b/buildtools/lib/widgets/CMakeLists.txt @@ -0,0 +1,55 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/lib/util + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + addenvvardlg.h addfilesdialog.h + environmentvariableswidget.h envvartools.h + makeoptionswidget.h removesubprojectdialog.h + runoptionswidget.h subclassesdlg.h + ${CMAKE_CURRENT_BINARY_DIR}/environmentvariableswidgetbase.h + ${CMAKE_CURRENT_BINARY_DIR}/makeoptionswidgetbase.h + ${CMAKE_CURRENT_BINARY_DIR}/removesubprojectdlgbase.h + ${CMAKE_CURRENT_BINARY_DIR}/runoptionswidgetbase.h + ${CMAKE_CURRENT_BINARY_DIR}/subclassesdlgbase.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kdevelop/buildtools/widgets ) + + +##### kdevbuildtoolswidgets (shared) ############ + +tde_add_library( kdevbuildtoolswidgets SHARED AUTOMOC + SOURCES + addenvvardlg.cpp addfilesdialog.cpp + environmentdisplaydialog.cpp + environmentdisplaydialogbase.ui + environmentvariableswidget.cpp + environmentvariableswidgetbase.ui envvartools.cpp + makeoptionswidget.cpp makeoptionswidgetbase.ui + removesubprojectdialog.cpp removesubprojectdlgbase.ui + runoptionswidget.cpp runoptionswidgetbase.ui + subclassesdlg.cpp subclassesdlgbase.ui + VERSION 0.0.0 + LINK kdevelop-shared + DESTINATION ${LIB_INSTALL_DIR} +) |