cmake/Tests/QtAutogen/MocOnly/CMakeLists.txt

16 lines
358 B
CMake
Raw Normal View History

2018-04-23 21:13:27 +02:00
cmake_minimum_required(VERSION 3.10)
project(MocOnly)
include("../AutogenTest.cmake")
add_executable(mocOnly
main.cpp
# Test different Q_OBJECT position styles
StyleA.cpp
StyleB.cpp
# Test different moc_/.moc include positions
IncA.cpp
IncB.cpp
)
set_property(TARGET mocOnly PROPERTY AUTOMOC ON)
target_link_libraries(mocOnly ${QT_LIBRARIES})