summaryrefslogtreecommitdiffstats
path: root/tdm/kfrontend/CMakeLists.txt
blob: 05472b551a8a2cc4f4b5fa7bc59ef40571222576 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#################################################
#
#  (C) 2010-2011 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

add_subdirectory( themer )
add_subdirectory( themes )
add_subdirectory( pics )
add_subdirectory( sessions )

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}/tdm/backend
  ${CMAKE_SOURCE_DIR}/tdmlib
  ${CMAKE_SOURCE_DIR}/kcontrol/background
  ${TDE_INCLUDE_DIR}
  ${TDE_INCLUDE_DIR}/tde
  ${TQT_INCLUDE_DIRS}
  ${KRB5_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${LIBART_LIBRARY_DIRS}
  ${TDE_LIB_DIR}
)


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

if( NOT DEFINED GENTDMCONF_FLAGS )
  set( GENTDMCONF_FLAGS "--no-old" )
endif( )

install( CODE "execute_process( COMMAND ${CMAKE_CURRENT_BINARY_DIR}/gentdmconf --in \$ENV{DESTDIR}${CONFIG_INSTALL_DIR}/tdm --no-in-notice --face-src ${CMAKE_CURRENT_SOURCE_DIR}/pics ${GENTDMCONF_FLAGS} )" )


##### config.ci (generated) #####################

add_custom_command( OUTPUT config.ci
  COMMAND perl -w ${CMAKE_SOURCE_DIR}/tdm/confproc.pl ${CMAKE_SOURCE_DIR}/tdm/config.def config.ci
  DEPENDS ${CMAKE_SOURCE_DIR}/tdm/confproc.pl ${CMAKE_SOURCE_DIR}/tdm/config.def )


##### tdm_config (executable) ###################

set_property( SOURCE tdm_config.c tdm_greet.c APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/config.ci )

tde_add_executable( tdm_config
  SOURCES tdm_config.c
  LINK
  DESTINATION ${BIN_INSTALL_DIR}
)


##### tdm_greet (executable) ####################
if( WITH_XRANDR )
  set( TDMGREET_OPTIONAL_LINK "tderandr-shared" )
endif ( )

tde_add_executable( tdm_greet AUTOMOC
  SOURCES
    tdm_greet.c tdmconfig.cpp tdmclock.cpp kconsole.cpp
    kfdialog.cpp kgdialog.cpp kchooser.cpp kgverify.cpp
    tdmshutdown.cpp tdmadmindialog.cpp kgreeter.cpp
    kgapp.cpp sakdlg.cpp
  LINK tdmthemer-static tdeui-shared tdeio-shared dmctl-static Xtst ${TDEHW_LIBRARIES} ${TDMGREET_OPTIONAL_LINK}
  DESTINATION ${BIN_INSTALL_DIR}
)


##### krootimage (executable) ###################

tde_add_executable( krootimage AUTOMOC
  SOURCES krootimage.cpp
  LINK bgnd-static tdeio-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


##### gentdmconf (executable) ###################

set_property( SOURCE gentdmconf.c APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/config.ci )

tde_add_executable( gentdmconf AUTOMOC
  SOURCES gentdmconf.c
  LINK X11
  DESTINATION ${BIN_INSTALL_DIR}
)


##### tdmctl (executable) #######################

tde_add_executable( tdmctl
  SOURCES tdmctl.c
  LINK
  DESTINATION ${BIN_INSTALL_DIR}
)