summaryrefslogtreecommitdiffstats
path: root/ksplashml/themeengine/simple/CMakeLists.txt
blob: 927f4b507b753c8cad61a46de237bcbfe9871ab4 (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
#################################################
#
#  (C) 2010-2011 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

if( WITH_XINERAMA )
  check_include_file( "X11/extensions/Xinerama.h" X11_EXTENSIONS_XINERAMA_H )
  if( X11_EXTENSIONS_XINERAMA_H )
    check_library_exists( Xinerama XineramaQueryExtension "" HAVE_XINERAMA )
  endif( X11_EXTENSIONS_XINERAMA_H )
  if( NOT HAVE_XINERAMA )
    tde_message_fatal( "xinerama are requested, but not found on your system" )
  endif( NOT HAVE_XINERAMA )
  set( XINERAMA_LIBRARY Xinerama )
endif( WITH_XINERAMA )


include_directories(
  ${CMAKE_BINARY_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### ksplashsimple (executable) ################

tde_add_executable( ksplashsimple
  SOURCES main.cpp
  LINK ${TQT_LIBRARIES} X11 ${XINERAMA_LIBRARY}
  DESTINATION ${BIN_INSTALL_DIR}
)