Started to make things work: show the board.
[tagua.git] / tests / luaimage / CMakeLists.txt
blob4f29a22e12d96ca55477ac9cd64728baad1f47f3
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   ${LUA_INCLUDE_DIRS}
33   ${Boost_INCLUDE_DIRS}
34   ${KDE4_INCLUDE_DIR}
37 ADD_DEFINITIONS(
38   ${LUA_CFLAGS}
41 LINK_DIRECTORIES(
42   ${LUA_LIBRARY_DIRS}
43   ${Boost_LIBRARY_DIRS}
46 TARGET_LINK_LIBRARIES(${this_test}
47   ${QT_LIBRARIES}
48   #${QT_QTNETWORK_LIBRARIES}
49   ${QT_QTSVG_LIBRARIES}
50   ${LUA_LINK_FLAGS}
51   ${KDE4_KDEUI_LIBS}
52   ${KDE4_KIO_LIBS}