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

0001 add_definitions(-DTRANSLATION_DOMAIN=\"kdevfiletemplates\")
0002 set(kdevfiletemplates_PART_SRCS
0003     templatepreview.cpp
0004     templatepreviewtoolview.cpp
0005     filetemplatesplugin.cpp
0006 
0007     ipagefocus.cpp
0008     classidentifierpage.cpp
0009     classmemberspage.cpp
0010     defaultcreateclasshelper.cpp
0011     licensepage.cpp
0012     outputpage.cpp
0013     overridespage.cpp
0014     templateclassassistant.cpp
0015     templateoptionspage.cpp
0016     templateselectionpage.cpp
0017     testcasespage.cpp
0018 )
0019 
0020 declare_qt_logging_category(kdevfiletemplates_PART_SRCS
0021     TYPE PLUGIN
0022     IDENTIFIER PLUGIN_FILETEMPLATES
0023     CATEGORY_BASENAME "filetemplates"
0024 )
0025 
0026 ki18n_wrap_ui(kdevfiletemplates_PART_SRCS
0027     templatepreviewtoolview.ui
0028     ui/licensechooser.ui
0029     ui/newclass.ui
0030     ui/outputlocation.ui
0031     ui/overridevirtuals.ui
0032     ui/templateselection.ui
0033     ui/testcases.ui
0034 )
0035 
0036 install(FILES kdevfiletemplates.knsrc  DESTINATION ${KDE_INSTALL_KNSRCDIR})
0037 qt5_add_resources(kdevfiletemplates_PART_SRCS kdevfiletemplates.qrc)
0038 
0039 kdevplatform_add_plugin(kdevfiletemplates SOURCES ${kdevfiletemplates_PART_SRCS})
0040 
0041 target_link_libraries(kdevfiletemplates
0042     KDev::Interfaces
0043     KDev::Language
0044     KDev::Project
0045     KDev::Util
0046     KF5::NewStuffWidgets
0047     KF5::TextEditor
0048 )
0049 
0050 ########### install files ###############
0051 
0052 install(FILES
0053 licenses/GPL\ v2
0054 licenses/GPL\ v3
0055 licenses/LGPL\ v2
0056 licenses/LGPL\ v3
0057 licenses/Apache\ v2
0058 licenses/BSD
0059 licenses/Boost
0060 licenses/MIT\ X11
0061 licenses/Mozilla\ v1.1
0062 "licenses/LGPL v2+ (KDE)"
0063 "licenses/GPL v2+ (KDE)"
0064 DESTINATION ${KDE_INSTALL_DATADIR}/kdevcodegen/licenses
0065 )
0066 
0067 
0068 ################
0069 
0070 set(test_srcs
0071 main.cpp
0072     templatepreview.cpp
0073 
0074     ipagefocus.cpp
0075     classidentifierpage.cpp
0076     classmemberspage.cpp
0077     defaultcreateclasshelper.cpp
0078     licensepage.cpp
0079     outputpage.cpp
0080     overridespage.cpp
0081     templateclassassistant.cpp
0082     templateoptionspage.cpp
0083     templateselectionpage.cpp
0084     testcasespage.cpp
0085     debug.cpp
0086 )
0087 
0088 if(BUILD_TESTING)
0089     add_executable(testfiletemplates ${test_srcs})
0090     add_dependencies(testfiletemplates kdevfiletemplates)
0091     target_link_libraries(testfiletemplates
0092         KDev::Interfaces
0093         KDev::Language
0094         KDev::Project
0095         KDev::Util
0096         KDev::Tests
0097         KF5::NewStuffWidgets
0098     )
0099 
0100     add_subdirectory(tests)
0101 endif()