Warning, /kdevelop/kdev-ruby/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.0)
0002 
0003 project(kdev-ruby)
0004 
0005 set(VERSION_MAJOR 1)
0006 set(VERSION_MINOR 90)
0007 set(VERSION_PATCH 90)
0008 
0009 set(CMAKE_CXX_STANDARD 17)
0010 set(CMAKE_CXX_STANDARD_REQUIRED YES)
0011 
0012 find_package (ECM "5.14.0" REQUIRED NO_MODULE)
0013 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
0014 
0015 include(GenerateExportHeader)
0016 include(KDEInstallDirs)
0017 include(KDECMakeSettings)
0018 include(KDECompilerSettings NO_POLICY_SCOPE)
0019 include(ECMQtDeclareLoggingCategory)
0020 
0021 set(QT_MIN_VERSION "5.5.0")
0022 find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core Widgets)
0023 if(BUILD_TESTING)
0024     find_package(Qt5Test ${QT_MIN_VERSION} CONFIG REQUIRED)
0025 endif()
0026 set(KF5_DEP_VERSION "5.15.0")
0027 find_package(KF5 ${KF5_DEP_VERSION} REQUIRED COMPONENTS
0028     TextEditor
0029     I18n
0030 )
0031 set(KDEVPLATFORM_DEP_VERSION "5.2.40")
0032 find_package(KDevPlatform ${KDEVPLATFORM_DEP_VERSION} CONFIG)
0033 set_package_properties(KDevPlatform PROPERTIES
0034     TYPE REQUIRED
0035 )
0036 
0037 find_package(BISON REQUIRED)
0038 
0039 # needed for parser/ module prefix with includes for some minimal namespacing
0040 include_directories(
0041     ${CMAKE_CURRENT_BINARY_DIR}
0042     ${CMAKE_CURRENT_SOURCE_DIR}
0043 )
0044 
0045 add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
0046 
0047 add_definitions( -DTRANSLATION_DOMAIN=\"kdevruby\" )
0048 
0049 add_subdirectory(parser)
0050 add_subdirectory(duchain)
0051 add_subdirectory(rails)
0052 add_subdirectory(completion)
0053 add_subdirectory(app_templates)
0054 
0055 set(ruby_PLUGIN_SRCS
0056     highlighting.cpp
0057     languagesupport.cpp
0058     launcher.cpp
0059     parsejob.cpp
0060     codegen/refactoring.cpp
0061 )
0062 ecm_qt_declare_logging_category(ruby_PLUGIN_SRCS
0063     HEADER debug.h
0064     IDENTIFIER KDEV_RUBY
0065     CATEGORY_NAME "kdevelop.languages.ruby"
0066 )
0067 qt5_add_resources(ruby_PLUGIN_SRCS
0068     kdevrubysupport.qrc
0069 )
0070 kdevplatform_add_plugin(kdevrubylanguagesupport JSON kdevrubylanguagesupport.json SOURCES ${ruby_PLUGIN_SRCS})
0071 
0072 target_link_libraries(kdevrubylanguagesupport
0073     KF5::I18n
0074     KF5::TextEditor
0075 
0076     KDev::Language
0077     KDev::Util
0078 
0079     kdevrubyparser
0080     kdevrubyduchain
0081     kdevrubycompletion
0082     kdevrubyrails
0083 )
0084 
0085 install(FILES documentation/builtins.rb DESTINATION ${KDE_INSTALL_DATADIR}/kdevrubysupport/documentation/)
0086 
0087 # kdebugsettings file
0088 install(FILES kdevrubysupport.categories DESTINATION ${KDE_INSTALL_CONFDIR})
0089 
0090 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
0091