Библиотека требует сборки в объектный файл (из-за moc)

This commit is contained in:
2020-06-28 09:52:03 +03:00
parent ca83f98484
commit a4d00ed80b
21 changed files with 84 additions and 271 deletions

View File

@ -23,11 +23,7 @@ endif()
include(CMLibCommon)
option(MYXLIB_BUILD_LIBRARIES "Build libraries" OFF)
if(MYXLIB_BUILD_LIBRARIES)
option(MYXLIB_BUILD_EXAMPLES "Build examples" OFF)
endif()
option(MYXLIB_BUILD_EXAMPLES_HO "Build examples using header only version" OFF)
option(MYXLIB_BUILD_EXAMPLES "Build examples" OFF)
# Поиск библиотек с помощью pkgconfig
find_package(PkgConfig REQUIRED)
@ -45,10 +41,12 @@ add_subdirectory(src/myx/filesystem)
add_subdirectory(src/myx/qt)
# Примеры
if(MYXLIB_BUILD_EXAMPLES OR MYXLIB_BUILD_EXAMPLES_HO)
if(MYXLIB_BUILD_EXAMPLES)
add_subdirectory(examples/base)
add_subdirectory(examples/filesystem)
add_subdirectory(examples/qt)
add_custom_target(examples example-base-endian example-filesystem-paths example-qt-tranlators
example-qt-posix-signal-watcher)
endif()
# Документация