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

0001 ecm_setup_version(${RELEASE_SERVICE_VERSION}
0002     VARIABLE_PREFIX KBLACKBOX
0003     VERSION_HEADER kblackbox_version.h
0004 )
0005 
0006 add_executable(kblackbox)
0007 
0008 target_sources(kblackbox PRIVATE
0009     kbbballsgraphicwidget.cpp
0010     kbbballsgraphicwidget.h
0011     kbbballsonboard.cpp
0012     kbbballsonboard.h
0013     kbbgamedoc.cpp
0014     kbbgamedoc.h
0015     kbbgraphicsitemball.cpp
0016     kbbgraphicsitemball.h
0017     kbbgraphicsitemballrepository.cpp
0018     kbbgraphicsitemballrepository.h
0019     kbbgraphicsitemblackbox.cpp
0020     kbbgraphicsitemblackbox.h
0021     kbbgraphicsitemborder.cpp
0022     kbbgraphicsitemborder.h
0023     kbbgraphicsitem.cpp
0024     kbbgraphicsitemcursor.cpp
0025     kbbgraphicsitemcursor.h
0026     kbbgraphicsitem.h
0027     kbbgraphicsiteminteractioninfo.cpp
0028     kbbgraphicsiteminteractioninfo.h
0029     kbbgraphicsitemlaser.cpp
0030     kbbgraphicsitemlaser.h
0031     kbbgraphicsitemonbox.cpp
0032     kbbgraphicsitemonbox.h
0033     kbbgraphicsitemray.cpp
0034     kbbgraphicsitemray.h
0035     kbbgraphicsitemrayresult.cpp
0036     kbbgraphicsitemrayresult.h
0037     kbbgraphicsitemset.cpp
0038     kbbgraphicsitemset.h
0039     kbbgraphicsitemtutorialmarker.cpp
0040     kbbgraphicsitemtutorialmarker.h
0041     kbbitemwithposition.cpp
0042     kbbitemwithposition.h
0043     kbblevelconfigurationpreview.cpp
0044     kbblevelconfigurationpreview.h
0045     kbblevelconfigurationwidget.cpp
0046     kbblevelconfigurationwidget.h
0047     kbbmainwindow.cpp
0048     kbbmainwindow.h
0049     kbbscalablegraphicwidget.cpp
0050     kbbscalablegraphicwidget.h
0051     kbbthememanager.cpp
0052     kbbthememanager.h
0053     kbbtutorial.cpp
0054     kbbtutorial.h
0055     main.cpp
0056 
0057     kblackbox.qrc
0058 )
0059 
0060 kconfig_add_kcfg_files(kblackbox kbbprefs.kcfgc)
0061 
0062 file(GLOB ICONS_SRCS "${CMAKE_SOURCE_DIR}/icons/*-apps-kblackbox.png")
0063 ecm_add_app_icon(kblackbox ICONS ${ICONS_SRCS})
0064 
0065 target_link_libraries(kblackbox
0066     KF5KDEGames
0067     KF5::CoreAddons
0068     KF5::XmlGui
0069     KF5::I18n
0070     KF5::Archive
0071     KF5::TextWidgets
0072     KF5::DBusAddons
0073     KF5::Crash
0074     Qt${QT_MAJOR_VERSION}::Svg
0075     Qt${QT_MAJOR_VERSION}::Xml
0076 )
0077 
0078 if (QT_MAJOR_VERSION STREQUAL "6")
0079     target_link_libraries(kblackbox Qt6::SvgWidgets)
0080 endif()
0081 
0082 install(TARGETS kblackbox  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0083 install(PROGRAMS org.kde.kblackbox.desktop  DESTINATION  ${KDE_INSTALL_APPDIR})
0084 install(FILES org.kde.kblackbox.appdata.xml  DESTINATION  ${KDE_INSTALL_METAINFODIR})