summaryrefslogtreecommitdiffstats
path: root/kpat/CMakeLists.txt
blob: d9f33546d80f757dc52f90669c8430b87ee98fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#################################################
#
#  (C) 2016 Alexander Golubev
#  fatzer2 (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

add_subdirectory( icons )
add_subdirectory( freecell-solver )

include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_SOURCE_DIR}/libtdegames
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### kpat (executable) #########################

tde_add_executable( kpat AUTOMOC
  SOURCES main.cpp cardmaps.cpp card.cpp dealer.cpp pwidget.cpp pile.cpp
    deck.cpp pile_algorithms.cpp kings.cpp freecell.cpp klondike.cpp simon.cpp
    grandf.cpp mod3.cpp idiot.cpp napoleon.cpp computation.cpp gypsy.cpp
    fortyeight.cpp yukon.cpp clock.cpp golf.cpp spider.cpp gamestatsimpl.cpp
    gamestats.ui
  LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared fcs-static
  DESTINATION ${BIN_INSTALL_DIR}
)


##### other data ################################

install( FILES green.png
  DESTINATION ${DATA_INSTALL_DIR}/kpat/backgrounds
)

install( FILES kpatui.rc
  DESTINATION ${DATA_INSTALL_DIR}/kpat
)

tde_create_translated_desktop( kpat.desktop )