summaryrefslogtreecommitdiffstats
path: root/tdescreensaver/xsavers/CMakeLists.txt
blob: 8ca15f8c75929a662d5e2bfe9540646e181651ce (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
53
54
55
56
57
58
#################################################
#
#  (C) 2011 Golubev Alexander
#  fatzer2 (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_BINARY_DIR}
  ${TQT_INCLUDE_DIRS}
  ${TDE_INCLUDE_DIR}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)

##### shared source ##########################

set( BASE_SRCS main.cpp demowin.cpp saver.cpp helpers.cpp )
set( XL_SRCS xlock.cpp )

##### kswarm #################################

tde_add_executable( kswarm.kss AUTOMOC
  SOURCES swarm.cpp ${BASE_SRCS} ${XL_SRCS}
  LINK tdeui-shared
  DESTINATION ${BIN_INSTALL_DIR}
)

tde_create_translated_desktop(
  SOURCE KSwarm.desktop
  DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers
  PO_DIR tdescreensaver-desktops
)

##### kswarm #################################

if( WITH_OPENGL )
  include_directories( ${OPENGL_INCLUDE_DIRS} )
  link_directories( ${OPENGL_LIBRARY_DIRS} )
  tde_add_executable( kspace.kss AUTOMOC
    SOURCES space.cpp ${BASE_SRCS} ${XL_SRCS}
    LINK tdeui-shared ${OPENGL_LIBRARIES}
    DESTINATION ${BIN_INSTALL_DIR}
  )

  tde_create_translated_desktop(
    SOURCE KSpace.desktop
    DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers
    PO_DIR tdescreensaver-desktops
  )
endif( WITH_OPENGL )