Update for doxygen 1.5.5, graph generation, and match current code.
[tagua/yd.git] / tests / luaimage / CMakeLists.txt
blob44ccce6eb27a1d7cf574f9739bc759aea25e618a
2 SET(this_test luaimage)
5 FILE(GLOB_RECURSE ${this_test}_SRC_CXX *.cpp)
6 FILE(GLOB_RECURSE ${this_test}_SRC_C *.c)
7 SET(${this_test}_SRC ${${this_test}_SRC_CXX} ${${this_test}_SRC_C})
9 FILE(GLOB_RECURSE ${this_test}_UIS *.ui)
12 # i have to do this because QT4_WRAP_UI is stupid
13 SET(old_bin_dir ${CMAKE_CURRENT_BINARY_DIR})
14 SET(CMAKE_CURRENT_BINARY_DIR ${old_bin_dir}/ui)
15 QT4_WRAP_UI(${this_test}_UIS_H ${${this_test}_UIS})
16 SET(CMAKE_CURRENT_BINARY_DIR ${old_bin_dir})
19 # QT4_AUTOMOC is not very intelligent either
20 QT4_AUTOMOC(
21   ${${this_test}_SRC})
23 ADD_EXECUTABLE(
24   ${this_test} ${${this_test}_SRC})
27 INCLUDE_DIRECTORIES(
28   .
29   ${QT_INCLUDE_DIR}
30   #${QT_QTNETWORK_INCLUDE_DIR}
31   ${QT_QTSVG_INCLUDE_DIR}
32   ${QT_QTXML_INCLUDE_DIR}
33   ${LUA_INCLUDE_DIRS}
34   ${Boost_INCLUDE_DIRS}
35   ${KDE4_INCLUDE_DIR}
38 ADD_DEFINITIONS(
39   ${LUA_CFLAGS}
42 LINK_DIRECTORIES(
43   ${LUA_LIBRARY_DIRS}
44   ${Boost_LIBRARY_DIRS}
47 TARGET_LINK_LIBRARIES(${this_test}
48   ${QT_LIBRARIES}
49   #${QT_QTNETWORK_LIBRARIES}
50   ${QT_QTSVG_LIBRARIES}
51   ${LUA_LINK_FLAGS}
52   ${KDE4_KDEUI_LIBS}
53   ${KDE4_KIO_LIBS}