Tests/QtAutogen/UnityMocSource/CMakeLists.txt
raw| 1 | cmake_minimum_required(VERSION 3.16) |
| 2 | project(UnityMocSource) |
| 3 | include("../AutogenGuiTest.cmake") |
| 4 | |
| 5 | set(CMAKE_AUTOMOC ON) |
| 6 | set(CMAKE_UNITY_BUILD ON) |
| 7 | |
| 8 | add_library(library library.cpp) |
| 9 | target_link_libraries(library ${QT_LIBRARIES}) |
| 10 | |
| 11 | add_executable(unityMocSource main.cpp) |
| 12 | target_link_libraries(unityMocSource PRIVATE library) |