summaryrefslogtreecommitdiff
path: root/Tests/QtAutogen/MocIncludeRelaxed/CMakeLists.txt
blob: 8b4da3453bec0370f0a6c7b5d80a3a943b2e229f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cmake_minimum_required(VERSION 3.10)
project(MocIncludeRelaxed)
include("../AutogenCoreTest.cmake")

# Test moc include patterns
set(CMAKE_AUTOMOC_RELAXED_MODE TRUE)

# Shared executable
set(MOC_INCLUDE_NAME "mocIncludeRelaxed")
include(${CMAKE_CURRENT_SOURCE_DIR}/../MocInclude/shared.cmake)

# Relaxed only executable
add_executable(mocIncludeRelaxedOnly
  RObjA.cpp
  RObjB.cpp
  RObjC.cpp
  RMain.cpp
)
target_link_libraries(mocIncludeRelaxedOnly ${QT_LIBRARIES})
set_target_properties(mocIncludeRelaxedOnly PROPERTIES AUTOMOC ON)