Warning, /kdevelop/kdevelop/plugins/astyle/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_definitions(-DTRANSLATION_DOMAIN=\"kdevastyle\")
0002 
0003 find_package(LibAStyle 3.1)
0004 set_package_properties(LibAStyle PROPERTIES
0005     DESCRIPTION "Artistic Style library"
0006     PURPOSE "External library for the astyle plugin"
0007     URL "http://astyle.sourceforge.net/"
0008     TYPE RECOMMENDED)
0009 
0010 declare_qt_logging_category(kdevastyle_LOG_SRCS
0011     TYPE PLUGIN
0012     IDENTIFIER KDEV_ASTYLE
0013     CATEGORY_BASENAME "astyle"
0014 )
0015 
0016 set(kdevastyle_PART_SRCS
0017     astyle_plugin.cpp
0018     astyle_preferences.cpp
0019     astyle_formatter.cpp
0020     astyle_stringiterator.cpp
0021     ${kdevastyle_LOG_SRCS}
0022 )
0023 
0024 set(astyle_preferences_UI
0025     astyle_preferences.ui
0026 )
0027 
0028 ki18n_wrap_ui(kdevastyle_PART_SRCS ${astyle_preferences_UI} )
0029 kdevplatform_add_plugin(kdevastyle SOURCES ${kdevastyle_PART_SRCS})
0030 target_link_libraries(kdevastyle
0031     astylelib
0032 
0033     KF5::Parts
0034     KF5::KIOWidgets
0035     KF5::TextEditor
0036 
0037     KDev::Interfaces
0038     KDev::Util)
0039 
0040 if(NOT LibAStyle_FOUND)
0041     add_subdirectory(3rdparty/libastyle)
0042 endif()
0043 if(BUILD_TESTING)
0044     add_subdirectory(tests)
0045 endif()