summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/StaticLibraryCycle/CMakeLists.txt
blob: 0c2f98782a7c2156fbb9b6acfea6eff96be22945 (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(StaticLibraryCycle)
include("../AutogenTest.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)