CMakeLists.txt 1.22 KB
Newer Older
1 2 3

########### next target ###############

4 5
include_directories( ${OPENGL_INCLUDE_DIR} )

6
set(kubrick_SRCS 
Frederik Schwarzer's avatar
Frederik Schwarzer committed
7 8 9 10 11 12 13 14 15 16 17
    kubrick_debug.cpp
    main.cpp 
    kubrick.cpp 
    game.cpp 
    cube.cpp
    movetracker.cpp 
    quaternion.cpp
    gamedialog.cpp 
    gameglview.cpp
    scenelabel.cpp
)
18

Laurent Montel's avatar
Laurent Montel committed
19
file(GLOB ICONS_SRCS "*-apps-kubrick.png")
Laurent Montel's avatar
Laurent Montel committed
20
ecm_add_app_icon(kubrick_SRCS ICONS ${ICONS_SRCS})
Laurent Montel's avatar
Laurent Montel committed
21
add_executable(kubrick ${kubrick_SRCS})
22

Christian Ehrlicher's avatar
Christian Ehrlicher committed
23 24 25 26
if(WIN32)
  set(opengl_libs opengl32.lib glu32.lib)
endif(WIN32)

27
target_link_libraries(kubrick
Frederik Schwarzer's avatar
Frederik Schwarzer committed
28 29 30
    Qt5::OpenGL
    Qt5::Svg
    KF5::Crash
Andrius Štikonas's avatar
Andrius Štikonas committed
31
    KF5::ConfigCore
Frederik Schwarzer's avatar
Frederik Schwarzer committed
32
    KF5::KIOCore
Andrius Štikonas's avatar
Andrius Štikonas committed
33
    KF5::XmlGui
Frederik Schwarzer's avatar
Frederik Schwarzer committed
34 35 36
    KF5KDEGames
    ${OPENGL_gl_LIBRARY}
    ${OPENGL_glu_LIBRARY}
37
)
38

Laurent Montel's avatar
Laurent Montel committed
39
install(TARGETS kubrick ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
40 41 42 43


########### install files ###############

Frederik Schwarzer's avatar
Frederik Schwarzer committed
44 45
install(FILES  kubrickui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kubrick)
install(PROGRAMS  org.kde.kubrick.desktop DESTINATION ${KDE_INSTALL_APPDIR})
46
install(FILES org.kde.kubrick.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
Frederik Schwarzer's avatar
Frederik Schwarzer committed
47 48 49 50 51 52 53 54 55 56

ecm_install_icons(ICONS
    128-apps-kubrick.png
    16-apps-kubrick.png
    22-apps-kubrick.png
    32-apps-kubrick.png
    48-apps-kubrick.png
    64-apps-kubrick.png
    DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor
)
57