Комментарий

This commit is contained in:
Andrei Astafev 2023-02-20 11:41:20 +03:00
parent 20ecbca42a
commit 1971b9240a

View File

@ -14,6 +14,7 @@ set(${PROJECT_NAME}_AUTHOR_EMAIL "dev@246060.ru")
# Рекомендуемый способ подключения MyxCMake # Рекомендуемый способ подключения MyxCMake
include(cmake/myx_setup.cmake) include(cmake/myx_setup.cmake)
# Используемые библиотеки
if(PROJECT_IS_TOP_LEVEL) if(PROJECT_IS_TOP_LEVEL)
myx_add_external_target(myx-example-interface-library myx_add_external_target(myx-example-interface-library
GIT_REPOSITORY git@gitlab.2:myx/examples/myx-example-interface-library) GIT_REPOSITORY git@gitlab.2:myx/examples/myx-example-interface-library)
@ -21,25 +22,6 @@ if(PROJECT_IS_TOP_LEVEL)
GIT_REPOSITORY git@gitlab.2:myx/examples/myx-example-object-library) GIT_REPOSITORY git@gitlab.2:myx/examples/myx-example-object-library)
endif() endif()
#add_subdirectory(${PROJECT_SOURCE_DIR}/modules/myx-example-interface-library ${CMAKE_BINARY_DIR}/myx-example-interface-library EXCLUDE_FROM_ALL)
#add_subdirectory(${PROJECT_SOURCE_DIR}/modules/myx-example-object-library ${CMAKE_BINARY_DIR}/myx-example-object-library EXCLUDE_FROM_ALL)
#if(PROJECT_IS_TOP_LEVEL)
# FetchContent_Add(myx-example-interface-library
# GIT_REPOSITORY git@gitlab.2:myx/examples/myx-example-interface-library
# GIT_PATH myx/examples/myx-example-interface-library
# GIT_REMOTE origin
# )
# FetchContent_Add(myx-example-object-library
# GIT_REPOSITORY git@gitlab.2:myx/examples/myx-example-object-library
# GIT_PATH myx/examples/myx-example-object-library
# GIT_REMOTE origin
# )
#else()
# include(myx_add_subdirectories.cmake)
#endif()
# Цель для создания исполняемого файла # Цель для создания исполняемого файла
myx_add_executable(${PROJECT_NAME}) myx_add_executable(${PROJECT_NAME})