mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
2ef640819f
Some AUTOGEN tests require the Qt core libraries only and some require the Qt gui libraries to function. This replaces the AutogenTest.cmake script with two specific AutogenCoreTest.cmake and AutogenGuiTest.cmake scripts that are included on demand.
21 lines
524 B
CMake
21 lines
524 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(StaticLibraryCycle)
|
|
include("../AutogenCoreTest.cmake")
|
|
|
|
# Test AUTOMOC on cyclic static libraries
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
# Cyclic static libraries
|
|
add_library(slc_a STATIC a.cpp)
|
|
target_link_libraries(slc_a ${QT_LIBRARIES} slc_b)
|
|
|
|
add_library(slc_b STATIC b.cpp)
|
|
target_link_libraries(slc_b ${QT_LIBRARIES} slc_c)
|
|
|
|
add_library(slc_c STATIC c.cpp)
|
|
target_link_libraries(slc_c ${QT_LIBRARIES} slc_a)
|
|
|
|
add_executable(slc main.cpp)
|
|
target_link_libraries(slc ${QT_LIBRARIES} slc_a)
|