You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
434 B
18 lines
434 B
# 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 ony 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)
|