summaryrefslogtreecommitdiffstats
path: root/tdecore/tests/CMakeLists.txt
blob: 36377a255bd9ed3e7243d6dd8f543a1c5c3f57df (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
#################################################
#
#  (C) 2016 Alexander Golubev
#  fatzer2 (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

include_directories(
  ${TQT_INCLUDE_DIRS}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_BINARY_DIR}/tdecore
  ${CMAKE_SOURCE_DIR}/tdecore
  ${CMAKE_SOURCE_DIR}/dcop
)

link_directories(
  ${TDECORE_LIBRARY_DIRS}
)

tde_add_library( tdeconfigtest SHARED AUTOMOC
  SOURCES tdeconfigtest.cpp
  LINK tdeunittest-shared
  EXCLUDE_FROM_ALL
)

set( CHECKS
  tdeconfigtestgui klocaletest kprocesstest ksimpleconfigtest kstddirstest
  kuniqueapptest ktempfiletest krandomsequencetest kdebugtest
  ksocktest kstringhandlertest kcmdlineargstest kapptest kmemtest
  dcopkonqtest kipctest cplusplustest kiconloadertest kresolvertest
  kmdcodectest knotifytest ksortablevaluelisttest krfcdatetest testqtargs
  kprociotest kcharsetstest kcalendartest kmacroexpandertest kshelltest
  kxerrorhandlertest startserviceby kglobaltest ktimezonestest
)


foreach( _check ${CHECKS} )
  tde_add_check_executable( ${_check} AUTOMOC LINK tdeconfigtest-shared )
endforeach( )

tde_add_check_executable( kurltest        AUTOMOC LINK tdeconfigtest-shared TEST )
tde_add_check_executable( tdestdacceltest AUTOMOC LINK tdeconfigtest-shared TEST )

tde_add_check_executable( kidlservertest AUTOMOC SOURCES KIDLTest.cpp KIDLTest.skel
  LINK tdeconfigtest-shared )
tde_add_check_executable( kidlclienttest AUTOMOC SOURCES KIDLTestClient.cpp
  KIDLTest.stub LINK tdeconfigtest-shared )

set_property(
  SOURCE KIDLTestClient.cpp
  APPEND PROPERTY
  OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/KIDLTest_stub.cpp
)