SVN_SILENT made messages (.desktop file)
[kdegames.git] / kolf / CMakeLists.txt
blobea55ae9558be3d1553ee724f5bb03f66dfa98691
1 project(kolf)
4 add_subdirectory( objects ) 
5 add_subdirectory( sounds ) 
6 add_subdirectory( courses ) 
7 add_subdirectory( pics ) 
8 add_subdirectory( graphics ) 
10 include_directories( ${CMAKE_SOURCE_DIR}/libkdegames/highscore  )
13 ########### next target ###############
15 set(kolf_LIB_SRCS 
16    kolf.cpp 
17    game.cpp 
18    canvasitem.cpp 
19    ball.cpp 
20    newgame.cpp 
21    config.cpp 
22    scoreboard.cpp 
23    editor.cpp 
24    pluginloader.cpp 
25    object.cpp 
26    vector.cpp 
27    printdialogpage.cpp 
28    kcomboboxdialog.cpp 
29    kolfsvgrenderer.cpp
30    floater.cpp 
31    slope.cpp )
33 kde4_add_library(kolfprivate SHARED ${kolf_LIB_SRCS})
35 target_link_libraries(kolfprivate  ${KDE4_KIO_LIBS} ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_PHONON_LIBS} kdegames)
37 set_target_properties(kolfprivate PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
38 install(TARGETS kolfprivate ${INSTALL_TARGETS_DEFAULT_ARGS})
41 ########### next target ###############
43 set(kolf_SRCS main.cpp)
45 kde4_add_app_icon(kolf_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/pics/hi*-app-kolf.png")
46 kde4_add_executable( kolf ${kolf_SRCS} )
48 target_link_libraries( kolf kolfprivate ${KDE4_KDEUI_LIBS})
49 install(TARGETS kolf  ${INSTALL_TARGETS_DEFAULT_ARGS} )
51 ########### install files ###############
53 install( FILES kolf.desktop  DESTINATION  ${XDG_APPS_INSTALL_DIR} )
54 install( FILES kolfui.rc intro tutorial.kolf tutorial.kolfgame  DESTINATION  ${DATA_INSTALL_DIR}/kolf )
55 #install( FILES ball.h game.h statedb.h config.h canvasitem.h object.h rtti.h vector.h floater.h slope.h  DESTINATION  ${INCLUDE_INSTALL_DIR}/kolf COMPONENT Devel )