summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/mocIncludeStrict/CMakeLists.txt
blob: 22e93a8bac64bf73b39730a1fd91bae1d7f1b3df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Test moc include patterns

set(CMAKE_AUTOMOC_RELAXED_MODE FALSE)

include_directories("../mocInclude")

add_executable(mocIncludeStrict
  ../mocInclude/ObjA.cpp
  ../mocInclude/ObjB.cpp
  ../mocInclude/ObjC.cpp
  ../mocInclude/ObjD.cpp
  ../mocInclude/subA/SubObjA.cpp
  ../mocInclude/subB/SubObjB.cpp
  ../mocInclude/subC/SubObjC.cpp
  main.cpp
)
target_link_libraries(mocIncludeStrict ${QT_LIBRARIES})
set_target_properties(mocIncludeStrict PROPERTIES AUTOMOC ON)