diff --git a/examples/filesystem/01_minimal/CMakeLists.txt b/examples/filesystem/01_minimal/CMakeLists.txt index 5b9501c..f4d533a 100644 --- a/examples/filesystem/01_minimal/CMakeLists.txt +++ b/examples/filesystem/01_minimal/CMakeLists.txt @@ -58,7 +58,6 @@ if(MYXLIB_BUILD_EXAMPLES_HO) target_include_directories(${TRGT}-ho PRIVATE ${CMAKE_SOURCE_DIR}/src) target_include_directories(${TRGT}-ho SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) - # target_compile_definitions(${TRGT} PUBLIC MYXLIB_HEADER_ONLY) add_dependencies(${TRGT}-ho base-header-only filesystem-header-only) diff --git a/examples/qt/01_translators/CMakeLists.txt b/examples/qt/01_translators/CMakeLists.txt index 7014a85..59af417 100644 --- a/examples/qt/01_translators/CMakeLists.txt +++ b/examples/qt/01_translators/CMakeLists.txt @@ -66,7 +66,6 @@ if(MYXLIB_BUILD_EXAMPLES_HO) target_include_directories(${TRGT}-ho PRIVATE ${CMAKE_SOURCE_DIR}/src) target_include_directories(${TRGT}-ho SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) - # target_compile_definitions(${TRGT} PUBLIC MYXLIB_HEADER_ONLY) add_dependencies(${TRGT}-ho base-header-only qt-header-only) diff --git a/examples/redis/01_client/CMakeLists.txt b/examples/redis/01_client/CMakeLists.txt index fdfc6df..ce03a3e 100644 --- a/examples/redis/01_client/CMakeLists.txt +++ b/examples/redis/01_client/CMakeLists.txt @@ -58,14 +58,23 @@ if(MYXLIB_BUILD_EXAMPLES) endif() if(MYXLIB_BUILD_EXAMPLES_HO) + set(REDIS_LIB_DIR ${CMAKE_SOURCE_DIR}/src/myx/redis) + + set(REDIS_moc_hpp + ${REDIS_LIB_DIR}/client.hpp + ${REDIS_LIB_DIR}/lexer.hpp + ${REDIS_LIB_DIR}/parser.hpp + ${REDIS_LIB_DIR}/request.hpp) + + qt5_wrap_cpp(REDIS_moc_cpp ${REDIS_moc_hpp}) + # Цель для создания исполняемого файла - add_executable(${TRGT}-ho ${TRGT_cpp} ${TRGT_qrc}) + add_executable(${TRGT}-ho ${TRGT_cpp} ${TRGT_moc_cpp} ${REDIS_moc_cpp} ${TRGT_moc_hpp}) common_target_properties(${TRGT}-ho) target_include_directories(${TRGT}-ho PRIVATE ${CMAKE_SOURCE_DIR}/src) target_include_directories(${TRGT}-ho SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) target_include_directories(${TRGT}-ho SYSTEM PUBLIC ${Qt5Network_INCLUDE_DIRS}) - # target_compile_definitions(${TRGT} PUBLIC MYXLIB_HEADER_ONLY) add_dependencies(${TRGT}-ho base-header-only redis-header-only)