Warning, /education/step/step/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_executable(step) 0002 0003 ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX STEP VERSION_HEADER step_version.h) 0004 0005 target_sources(step PRIVATE 0006 arrow.cc 0007 clipboard.cc 0008 mainwindow.cc 0009 worldmodel.cc 0010 worldscene.cc 0011 worldgraphics.cc 0012 worldbrowser.cc 0013 propertiesbrowser.cc 0014 infobrowser.cc 0015 undobrowser.cc 0016 itempalette.cc 0017 worldfactory.cc 0018 stepgraphicsitem.cc 0019 particlegraphics.cc 0020 polygongraphics.cc 0021 gasgraphics.cc 0022 gascreationdialog.cc 0023 softbodygraphics.cc 0024 springgraphics.cc 0025 motorgraphics.cc 0026 jointgraphics.cc 0027 toolgraphics.cc 0028 simulationthread.cc 0029 unitscalc.cc 0030 latexformula.cc 0031 messageframe.cc 0032 main.cc 0033 choicesmodel.cc 0034 0035 step.qrc 0036 ) 0037 0038 if(STEP_WITH_QALCULATE) 0039 target_compile_definitions(step PRIVATE 0040 -DSTEP_WITH_QALCULATE 0041 -DSTEP_WITH_UNITSCALC 0042 ) 0043 target_compile_options(step PRIVATE ${QALCULATE_CFLAGS}) 0044 target_link_libraries(step ${QALCULATE_LIBRARIES} ${CLN_LIBRARIES}) 0045 # To compile with libcln 0046 string (REPLACE "-fno-exceptions" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") 0047 add_definitions (-fexceptions) 0048 endif(STEP_WITH_QALCULATE) 0049 0050 ki18n_wrap_ui(step 0051 create_gas_particles.ui 0052 create_softbody_items.ui 0053 configure_graph.ui 0054 configure_meter.ui 0055 configure_controller.ui 0056 configure_step_general.ui 0057 ) 0058 0059 kconfig_add_kcfg_files(step settings.kcfgc) 0060 0061 ecm_create_qm_loader(step step_qt) 0062 0063 target_include_directories(step PUBLIC ${CMAKE_SOURCE_DIR}) 0064 0065 target_link_libraries(step 0066 stepcore 0067 KF${QT_MAJOR_VERSION}::Crash 0068 KF${QT_MAJOR_VERSION}::I18n 0069 KF${QT_MAJOR_VERSION}::IconThemes 0070 KF${QT_MAJOR_VERSION}::KIOCore 0071 KF${QT_MAJOR_VERSION}::KIOWidgets 0072 KF${QT_MAJOR_VERSION}::TextWidgets 0073 KF${QT_MAJOR_VERSION}::Plotting 0074 KF${QT_MAJOR_VERSION}::NewStuffWidgets 0075 KF${QT_MAJOR_VERSION}::XmlGui 0076 Qt::Widgets 0077 ) 0078 if (QT_MAJOR_VERSION STREQUAL "6") 0079 target_link_libraries(step Qt6::OpenGLWidgets) 0080 endif() 0081 0082 install(TARGETS step ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0083 install(FILES step.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) 0084 install(FILES step.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) 0085 install( PROGRAMS org.kde.step.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 0086 0087 add_subdirectory(icons) 0088 add_subdirectory(data)