mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-25 11:22:55 +00:00
87 lines
2.8 KiB
CMake
87 lines
2.8 KiB
CMake
project(cpp)
|
|
include(CppBuildConfig.cmake)
|
|
|
|
include_directories(
|
|
${KDevelop_SOURCE_DIR}/languages/cpp/parser
|
|
${KDevelop_SOURCE_DIR}/languages/cpp/cppduchain
|
|
)
|
|
|
|
add_definitions( -DKDE_DEFAULT_DEBUG_AREA=9007 )
|
|
|
|
add_subdirectory(parser)
|
|
add_subdirectory(cppduchain)
|
|
if(ENABLE_TESTING)
|
|
add_subdirectory(tests)
|
|
endif()
|
|
|
|
########### next target ###############
|
|
|
|
set(kdevcpplanguagesupport_PART_SRCS
|
|
cpplanguagesupport.cpp
|
|
includepathcomputer.cpp
|
|
cppparsejob.cpp
|
|
preprocessjob.cpp
|
|
cpphighlighting.cpp
|
|
cpputils.cpp
|
|
includepathresolver.cpp
|
|
setuphelpers.cpp
|
|
quickopen.cpp
|
|
|
|
codecompletion/model.cpp
|
|
codecompletion/worker.cpp
|
|
codecompletion/context.cpp
|
|
codecompletion/item.cpp
|
|
codecompletion/helpers.cpp
|
|
codecompletion/missingincludeitem.cpp
|
|
codecompletion/implementationhelperitem.cpp
|
|
|
|
# codegen/cppnewclass.cpp
|
|
codegen/simplerefactoring.cpp
|
|
codegen/adaptsignatureassistant.cpp
|
|
codegen/adaptsignatureaction.cpp
|
|
codegen/unresolvedincludeassistant.cpp
|
|
codegen/customincludepaths.cpp
|
|
codegen/cppclasshelper.cpp
|
|
# codegen/makeimplementationprivate.cpp
|
|
|
|
codegen/custom_include_paths.ui
|
|
# codegen/privateimplementation.ui
|
|
)
|
|
|
|
option(BUILD_kdev_includepathresolver "Build the includepath resolver debugging tool" OFF)
|
|
if(BUILD_kdev_includepathresolver)
|
|
add_executable(kdev_includepathresolver includepathresolver.cpp)
|
|
set_target_properties( kdev_includepathresolver PROPERTIES COMPILE_FLAGS -DTEST )
|
|
target_link_libraries( kdev_includepathresolver
|
|
${KDEVPLATFORM_INTERFACES_LIBRARIES} ${KDEVPLATFORM_PROJECT_LIBRARIES}
|
|
${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDEVPLATFORM_LANGUAGE_LIBRARIES} )
|
|
install(TARGETS kdev_includepathresolver ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
endif(BUILD_kdev_includepathresolver)
|
|
|
|
option(BUILD_uiblocktester "Build a debug thread into the plugin that checks for UI-thread lockups" OFF)
|
|
if(BUILD_uiblocktester)
|
|
add_definitions(-DDEBUG_UI_LOCKUP)
|
|
endif(BUILD_uiblocktester)
|
|
|
|
kde4_add_plugin(kdevcpplanguagesupport ${kdevcpplanguagesupport_PART_SRCS})
|
|
target_link_libraries(kdevcpplanguagesupport
|
|
kdev4cpprpp
|
|
kdev4cppduchain
|
|
kdev4cppparser
|
|
${KDEVPLATFORM_INTERFACES_LIBRARIES}
|
|
${KDEVPLATFORM_LANGUAGE_LIBRARIES}
|
|
${KDEVPLATFORM_PROJECT_LIBRARIES}
|
|
${KDEVPLATFORM_UTIL_LIBRARIES}
|
|
${KDE4_THREADWEAVER_LIBS}
|
|
${KDE4_KDECORE_LIBS}
|
|
${KDE4_KTEXTEDITOR_LIBS}
|
|
)
|
|
|
|
install(TARGETS kdevcpplanguagesupport DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
|
|
########### install files ###############
|
|
|
|
configure_file(kdevcppsupport.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/kdevcppsupport.desktop)
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kdevcppsupport.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
|
install(FILES kdevcppsupport.rc DESTINATION ${DATA_INSTALL_DIR}/kdevcppsupport)
|