Warning, /education/parley/src/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include_directories( ${parley_INCLUDE_DIRS}
0002                      ${CMAKE_CURRENT_SOURCE_DIR}/collection
0003                      ${CMAKE_CURRENT_SOURCE_DIR}/editor  # FIXME: Remove when moving the rest of the files in vocabulary/
0004 )
0005 
0006 # installation of kconfig files .kcfg containing app settings
0007 add_subdirectory( settings )
0008 
0009 set(parley_LIB_SRCS
0010     collection/collection.cpp
0011     collection/collection.h
0012     collection/containermimedata.cpp
0013     collection/containermimedata.h
0014     collection/containermodel.cpp
0015     collection/containermodel.h
0016     collection/containerview.cpp
0017     collection/containerview.h
0018     collection/entryfilter.cpp
0019     collection/entryfilterdialog.cpp
0020     collection/entryfilterdialog.h
0021     collection/entryfilter.h
0022     collection/lessonmodel.cpp
0023     collection/lessonmodel.h
0024     collection/readonlycontainermodel.cpp
0025     collection/readonlycontainermodel.h
0026     collection/testentry.cpp
0027     collection/testentry.h
0028     collection/vocabularyfilter.cpp
0029     collection/vocabularyfilter.h
0030     collection/vocabularymimedata.cpp
0031     collection/vocabularymimedata.h
0032     collection/vocabularymodel.cpp
0033     collection/vocabularymodel.h
0034     collection/wordclassmodel.cpp
0035     collection/wordclassmodel.h
0036     dashboard/barwidget.cpp
0037     dashboard/barwidget.h
0038     dashboard/buttondelegate.cpp
0039     dashboard/buttondelegate.h
0040     dashboard/collectionwidget.cpp
0041     dashboard/collectionwidget.h
0042     dashboard/dashboard.cpp
0043     dashboard/dashboard.h
0044     dashboard/gradereferencewidget.cpp
0045     dashboard/gradereferencewidget.h
0046     editor/audiowidget.cpp
0047     editor/audiowidget.h
0048     editor/browserwidget.cpp
0049     editor/browserwidget.h
0050     editor/comparisonwidget.cpp
0051     editor/comparisonwidget.h
0052     editor/conjugationwidget.cpp
0053     editor/conjugationwidget.h
0054     editor/declensionwidget.cpp
0055     editor/declensionwidget.h
0056     editor/editor.cpp
0057     editor/editor.h
0058     editor/imagechooserwidget.cpp
0059     editor/imagechooserwidget.h
0060     editor/inflectionwidget.cpp
0061     editor/inflectionwidget.h
0062     editor/latexwidget.cpp
0063     editor/latexwidget.h
0064     editor/lessonview.cpp
0065     editor/lessonview.h
0066     editor/multiplechoicewidget.cpp
0067     editor/multiplechoicewidget.h
0068     editor/summarywordwidget.cpp
0069     editor/summarywordwidget.h
0070     editor/synonymwidget.cpp
0071     editor/synonymwidget.h
0072     editor/translateshelladapter.cpp
0073     editor/translateshelladapter.h
0074     editor/vocabularycolumnsdialog.cpp
0075     editor/vocabularycolumnsdialog.h
0076     editor/vocabularydelegate.cpp
0077     editor/vocabularydelegate.h
0078     editor/vocabularyheaderview.cpp
0079     editor/vocabularyheaderview.h
0080     editor/vocabularyview.cpp
0081     editor/vocabularyview.h
0082     editor/wordtypeview.cpp
0083     editor/wordtypeview.h
0084     parleyactions.cpp
0085     parleyactions.h
0086     parleydocument.cpp
0087     parleydocument.h
0088     parleymainwindow.cpp
0089     parleymainwindow.h
0090     practice/abstractbackendmode.cpp
0091     practice/abstractbackendmode.h
0092     practice/abstractfrontend.cpp
0093     practice/abstractfrontend.h
0094     practice/abstractwidget.cpp
0095     practice/abstractwidget.h
0096     practice/audiobutton.cpp
0097     practice/audiobutton.h
0098     practice/boxeswidget.cpp
0099     practice/boxeswidget.h
0100     practice/comparisonbackendmode.cpp
0101     practice/comparisonbackendmode.h
0102     practice/comparisonmodewidget.cpp
0103     practice/comparisonmodewidget.h
0104     practice/configure/blockoptions.cpp
0105     practice/configure/blockoptions.h
0106     practice/configure/configurepracticedialog.cpp
0107     practice/configure/configurepracticedialog.h
0108     practice/configure/generalpracticeoptions.cpp
0109     practice/configure/generalpracticeoptions.h
0110     practice/configure/specificpracticeoptions.cpp
0111     practice/configure/specificpracticeoptions.h
0112     practice/configure/thresholdoptions.cpp
0113     practice/configure/thresholdoptions.h
0114     practice/conjugationbackendmode.cpp
0115     practice/conjugationbackendmode.h
0116     practice/conjugationdata.h
0117     practice/conjugationmodewidget.cpp
0118     practice/conjugationmodewidget.h
0119     practice/examplesentencebackendmode.cpp
0120     practice/examplesentencebackendmode.h
0121     practice/flashcardbackendmode.cpp
0122     practice/flashcardbackendmode.h
0123     practice/flashcardmodewidget.cpp
0124     practice/flashcardmodewidget.h
0125     practice/genderbackendmode.cpp
0126     practice/genderbackendmode.h
0127     practice/guifrontend.cpp
0128     practice/guifrontend.h
0129     practice/imagecache.cpp
0130     practice/imagecache.h
0131     practice/imagewidget.cpp
0132     practice/imagewidget.h
0133     practice/latexrenderer.cpp
0134     practice/latexrenderer.h
0135     practice/mixedlettersmodewidget.cpp
0136     practice/mixedlettersmodewidget.h
0137     practice/multiplechoicebackendmode.cpp
0138     practice/multiplechoicebackendmode.h
0139     practice/multiplechoicedata.h
0140     practice/multiplechoicemodewidget.cpp
0141     practice/multiplechoicemodewidget.h
0142     practice/practicemainwindow.cpp
0143     practice/practicemainwindow.h
0144     practice/practicestatemachine.cpp
0145     practice/practicestatemachine.h
0146     practice/practicesummarycomponent.cpp
0147     practice/practicesummarycomponent.h
0148     practice/sessionmanagerbase.cpp
0149     practice/sessionmanagerbase.h
0150     practice/sessionmanagercontinuous.cpp
0151     practice/sessionmanagercontinuous.h
0152     practice/sessionmanagerfixed.cpp
0153     practice/sessionmanagerfixed.h
0154     practice/statustogglebutton.cpp
0155     practice/statustogglebutton.h
0156     practice/statustoggle.cpp
0157     practice/statustoggle.h
0158     practice/summarybarwidget.cpp
0159     practice/summarybarwidget.h
0160     practice/themedbackgroundrenderer.cpp
0161     practice/themedbackgroundrenderer.h
0162     practice/writtenbackendmode.cpp
0163     practice/writtenbackendmode.h
0164     practice/writtenpracticevalidator.cpp
0165     practice/writtenpracticevalidator.h
0166     practice/writtenpracticewidget.cpp
0167     practice/writtenpracticewidget.h
0168     settings/documentproperties.cpp
0169     settings/documentproperties.h
0170     settings/generaloptions.cpp
0171     settings/generaloptions.h
0172     settings/kgametheme/kgametheme.cpp
0173     settings/kgametheme/kgametheme.h
0174     settings/kgametheme/kgamethemeselector.cpp
0175     settings/kgametheme/kgamethemeselector.h
0176     settings/languageproperties.cpp
0177     settings/languageproperties.h
0178     settings/languagepropertiespage.cpp
0179     settings/languagepropertiespage.h
0180     settings/parleyprefs.cpp
0181     settings/parleyprefs.h
0182     settings/translationshelloptions.cpp
0183     settings/translationshelloptions.h
0184     settings/viewoptions.cpp
0185     settings/viewoptions.h
0186     statistics/conjugationoptions.cpp
0187     statistics/conjugationoptions.h
0188     statistics/lessonstatisticsview.cpp
0189     statistics/lessonstatisticsview.h
0190     statistics/statisticslegendwidget.cpp
0191     statistics/statisticslegendwidget.h
0192     statistics/statisticsmainwindow.cpp
0193     statistics/statisticsmainwindow.h
0194     statistics/statisticsmodel.cpp
0195     statistics/statisticsmodel.h
0196     utils.cpp
0197     utils.h
0198 
0199 )
0200 
0201 ki18n_wrap_ui(parley_LIB_SRCS
0202     collection/entryfilterdialog.ui
0203     editor/multiplechoicewidget.ui
0204     editor/comparisonwidget.ui
0205     editor/conjugationwidget.ui
0206     editor/declensionwidget.ui
0207     editor/imagechooserwidget.ui
0208     editor/audiowidget.ui
0209     editor/synonymwidget.ui
0210     editor/browserwidget.ui
0211     editor/summarywordwidget.ui
0212     editor/latexwidget.ui
0213     practice/practicesummarywidget.ui
0214     practice/practice_mainwindow.ui
0215     practice/practice_widget_comparison.ui
0216     practice/practice_widget_conjugation.ui
0217     practice/practice_widget_flashcard.ui
0218     practice/practice_widget_multiplechoice.ui
0219     practice/practice_widget_written.ui
0220     practice/configure/generalpracticeoptions.ui
0221     practice/configure/blockoptions.ui
0222     practice/configure/thresholdoptions.ui
0223     practice/configure/specificpracticeoptions.ui
0224     settings/optionlistform.ui
0225     settings/viewoptionsbase.ui
0226     settings/generaloptionsbase.ui
0227     settings/languagepropertiespage.ui
0228     settings/documentproperties.ui
0229     settings/kgametheme/kgamethemeselector.ui
0230     settings/translationshellpage.ui
0231     statistics/statisticsmainwindow.ui
0232     dashboard/dashboard.ui
0233 )
0234 
0235 kconfig_add_kcfg_files(parley_LIB_SRCS
0236     settings/prefs.kcfgc
0237     settings/documentsettings.kcfgc
0238     settings/languagesettings.kcfgc
0239 )
0240 
0241 qt_add_dbus_adaptor(parley_LIB_SRCS editor/org.kde.parley.xml
0242                      editor/editor.h Editor::EditorWindow)
0243 
0244 #### XSLT Support ####
0245 # to transform the document xml to html or other
0246 if(HAVE_LIBXSLT)
0247     set(parley_LIB_SRCS ${parley_LIB_SRCS}
0248         exportdialog.cpp
0249         exportdialog.h
0250     )
0251 
0252     ki18n_wrap_ui(parley_LIB_SRCS
0253         exportdialog.ui
0254     )
0255 endif(HAVE_LIBXSLT)
0256 #### End XSLT Support ####
0257 
0258 # This library is used both by parley itself and the unit tests.
0259 add_library(parley_LIB STATIC ${parley_LIB_SRCS})
0260 
0261 set(parley_SRCS main.cpp)
0262 add_executable(parley ${parley_SRCS})
0263 
0264 target_link_libraries(parley parley_LIB ${parley_LINK_LIBS})
0265 target_link_libraries(parley_LIB ${parley_LINK_LIBS})
0266 
0267 ########### install files ###############
0268 install(TARGETS parley  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
0269 
0270 # desktop files appear in the menus
0271 install( PROGRAMS org.kde.parley.desktop DESTINATION  ${KDE_INSTALL_APPDIR} )
0272 
0273 # hot new stuff config
0274 install( FILES parley.knsrc parley-themes.knsrc DESTINATION  ${KDE_INSTALL_KNSRCDIR} )
0275 
0276 
0277 # UI files - define menus and toolbars
0278 # @todo frameworks find a definitive locations for files and then use KXMLGUI_INSTALL_DIR
0279 install( FILES parleyui.rc  DESTINATION  ${KDE_INSTALL_KXMLGUI5DIR}/parley )
0280 #install( FILES editor/editorui.rc DESTINATION  ${KDE_INSTALL_DATADIR}/parley )
0281 install( FILES editor/editorui.rc DESTINATION  ${KDE_INSTALL_KXMLGUI5DIR}/parley )
0282 install( FILES dashboard/dashboardui.rc DESTINATION  ${KDE_INSTALL_KXMLGUI5DIR}/parley )
0283 # install( FILES statistics/statisticsui.rc DESTINATION  ${KDE_INSTALL_DATADIR}/parley )
0284 # install( FILES practice/practiceui.rc DESTINATION  ${KDE_INSTALL_DATADIR}/parley )
0285 # install( FILES practice/practicesummaryui.rc DESTINATION  ${KDE_INSTALL_DATADIR}/parley )
0286 install( FILES statistics/statisticsui.rc DESTINATION  ${KDE_INSTALL_KXMLGUI5DIR}/parley )
0287 install( FILES practice/practiceui.rc DESTINATION  ${KDE_INSTALL_KXMLGUI5DIR}/parley )
0288 install( FILES practice/practicesummaryui.rc DESTINATION  ${KDE_INSTALL_KXMLGUI5DIR}/parley )