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

0001 ########### next target ###############
0002 
0003 include_directories(
0004         ${CMAKE_CURRENT_SOURCE_DIR}
0005         ${CMAKE_CURRENT_SOURCE_DIR}/gui
0006         ${CMAKE_CURRENT_SOURCE_DIR}/gui/views
0007         ${CMAKE_CURRENT_SOURCE_DIR}/logic
0008         ${CMAKE_CURRENT_BINARY_DIR}
0009         ${CMAKE_CURRENT_BINARY_DIR}/gui
0010 #        ${CMAKE_CURRENT_BINARY_DIR}/gui/export
0011 #        ${CMAKE_CURRENT_BINARY_DIR}/gui/export/draw
0012         ${CMAKE_CURRENT_BINARY_DIR}/logic
0013         ${CMAKE_CURRENT_SOURCE_DIR}/generator
0014 )
0015 
0016 if(OPENGL_SUPPORT)
0017    include_directories(${OPENGL_INCLUDE_DIR})
0018 endif(OPENGL_SUPPORT)
0019 
0020 set(ksudoku_SRCS
0021         main.cpp
0022         generator/sudokuboard.cpp
0023         generator/state.cpp
0024         generator/dlxsolver.cpp
0025         generator/cagegenerator.cpp
0026         generator/mathdokugenerator.cpp
0027 
0028         ksudoku.qrc
0029 )
0030 
0031 ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX KSUDOKU VERSION_HEADER ksudoku_version.h)
0032 
0033 ecm_qt_declare_logging_category(ksudoku_SRCS
0034     HEADER ksudoku_logging.h
0035     IDENTIFIER KSudokuLog
0036     CATEGORY_NAME org.kde.ksudoku
0037     DEFAULT_SEVERITY Warning
0038 )
0039 
0040 file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/*-apps-ksudoku.png")
0041 ecm_add_app_icon(ksudoku_SRCS ICONS ${ICONS_SRCS})
0042 add_executable(ksudoku ${ksudoku_SRCS})
0043 
0044 target_link_libraries(ksudoku
0045     ksudoku_gui
0046     ksudoku_logic
0047     KDEGames6
0048     KF6::KIOCore
0049     KF6::Crash
0050     KF6::DBusAddons
0051     KF6::I18n
0052 )
0053 
0054 if(OPENGL_SUPPORT)
0055 target_link_libraries(ksudoku
0056         OpenGL::GL OpenGL::GLU ${CMAKE_DL_LIBS}
0057 )
0058 endif(OPENGL_SUPPORT)
0059 
0060 install(TARGETS ksudoku  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
0061 
0062 ########### next target ###############
0063 add_subdirectory(gui)
0064 add_subdirectory(logic)
0065 add_subdirectory(shapes)
0066 add_subdirectory(themes)
0067 
0068 ########### install files ###############
0069 
0070 install(PROGRAMS gui/org.kde.ksudoku.desktop  DESTINATION  ${KDE_INSTALL_APPDIR})
0071 install(FILES gui/org.kde.ksudoku.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0072 install(FILES ksudokurc  DESTINATION ${KDE_INSTALL_CONFDIR})
0073 
0074 ecm_install_icons(ICONS
0075     128-apps-ksudoku.png
0076     16-apps-ksudoku.png
0077     32-apps-ksudoku.png
0078     DESTINATION ${KDE_INSTALL_ICONDIR}
0079     THEME hicolor
0080 )