1 # Those paths need to be absolute since this file is included from other CMakeLists.txt files
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
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
34 kdganttconstraintmodel
35 kdganttconstraintproxy
37 kdganttforwardingproxymodel
42 kdganttsummaryhandlingproxymodel
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)
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)