| 1 |
# Copyright (C) 2022 The Qt Company Ltd. |
| 2 |
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause |
| 3 |
|
| 4 |
add_library(painting_shared OBJECT) |
| 5 |
add_library(painting_shared::painting_shared ALIAS painting_shared) |
| 6 |
qt6_wrap_cpp(moc_files arthurwidgets.h hoverpoints.h) # no automoc for OBJECT libs:-/ |
| 7 |
target_sources(painting_shared PRIVATE |
| 8 |
arthurstyle.cpp arthurstyle.h |
| 9 |
arthurwidgets.cpp arthurwidgets.h |
| 10 |
hoverpoints.cpp hoverpoints.h |
| 11 |
${moc_files} |
| 12 |
) |
| 13 |
|
| 14 |
set_target_properties(painting_shared PROPERTIES UNITY_BUILD OFF) |
| 15 |
|
| 16 |
target_link_libraries(painting_shared PUBLIC Qt6::Widgets) |
| 17 |
target_include_directories(painting_shared PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") |