Backport r950340 | aacid | 2009-04-06 23:21:18 +0200 (Mon, 06 Apr 2009) | 4 lines
[kdepim.git] / kdgantt / CMakeLists.txt
blobe74903f7f010f3286c88f35370a836a422576c2f
1 # Those paths need to be absolute since this file is included from other CMakeLists.txt files
2 set(libkdgantt_SRCS
3   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttglobal.cpp
4   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttview.cpp
5   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttstyleoptionganttitem.cpp
6   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttgraphicsview.cpp
7   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttabstractrowcontroller.cpp
8   ${CMAKE_SOURCE_DIR}/kdgantt/kdgantttreeviewrowcontroller.cpp
9   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttlistviewrowcontroller.cpp
10   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttgraphicsscene.cpp
11   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttgraphicsitem.cpp
12   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttconstraint.cpp
13   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttconstraintproxy.cpp
14   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttconstraintgraphicsitem.cpp
15   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttitemdelegate.cpp
16   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttforwardingproxymodel.cpp
17   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttsummaryhandlingproxymodel.cpp
18   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttproxymodel.cpp
19   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttconstraintmodel.cpp
20   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttabstractgrid.cpp
21   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttdatetimegrid.cpp
22   ${CMAKE_SOURCE_DIR}/kdgantt/kdganttlegend.cpp
23   
24   ${CMAKE_SOURCE_DIR}/kdgantt/kdgantttimescalezoomdialog.cpp
27 add_definitions(-DKDAB_NO_UNIT_TESTS)
29 # Generate moc_foo.cpp files since that's what the cpp files include (it works automatically with qmake, this way...)
30 # List of source files generated with "grep -l moc_ *.cpp | sed -e 's/\.cpp$//'"
31 # Plus kdganttgraphicsview_p
32 set(libkdgantt_mocable_files
33   kdganttabstractgrid
34   kdganttconstraintmodel
35   kdganttconstraintproxy
36   kdganttdatetimegrid
37   kdganttforwardingproxymodel
38   kdganttgraphicsscene
39   kdganttgraphicsview
40   kdganttitemdelegate
41   kdganttproxymodel
42   kdganttsummaryhandlingproxymodel
43   kdganttview
44   kdganttlegend
45   kdgantttimescalezoomdialog
47 foreach(it ${libkdgantt_mocable_files})
48   qt4_generate_moc(${CMAKE_SOURCE_DIR}/kdgantt/${it}.h ${CMAKE_BINARY_DIR}/kdgantt/moc_${it}.cpp)
49   macro_add_file_dependencies(${CMAKE_SOURCE_DIR}/kdgantt/${it}.cpp ${CMAKE_BINARY_DIR}/kdgantt/moc_${it}.cpp)
50 endforeach(it)
52 qt4_generate_moc(${CMAKE_SOURCE_DIR}/kdgantt/kdganttgraphicsview_p.h ${CMAKE_BINARY_DIR}/kdgantt/moc_kdganttgraphicsview_p.cpp)
53 macro_add_file_dependencies(${CMAKE_SOURCE_DIR}/kdgantt/kdganttgraphicsview.cpp ${CMAKE_BINARY_DIR}/kdgantt/moc_kdganttgraphicsview_p.cpp)