This commit is contained in:
Andrei Astafev 2022-10-02 16:33:14 +03:00
parent c03e7dbd2b
commit 60a910332d
5 changed files with 20 additions and 16 deletions

View File

@ -1,4 +1,4 @@
set(MYX_CMAKE_PACKAGE_VERSION "1.99.43")
set(MYX_CMAKE_PACKAGE_VERSION "1.99.44")
if(MYX_CMAKE_PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()

View File

@ -12,7 +12,7 @@
```cmake
if(MYX_CMAKE_USE_SYSTEM)
find_package(MyxCMake 1.99.43 REQUIRED)
find_package(MyxCMake 1.99.44 REQUIRED)
else()
include(${PROJECT_SOURCE_DIR}/cmake/myx/MyxCMakeConfig.cmake)
endif()

View File

@ -1 +1 @@
1.99.43
1.99.44

View File

@ -56,9 +56,9 @@ function(myx_qt5_target_setup NAME)
if("LinguistTools" IN_LIST ARG_COMPONENTS)
foreach(iter ${ARG_LANGS})
qt5_create_translation(qm
"${PROJECT_SOURCE_DIR}/include"
"${PROJECT_SOURCE_DIR}/src"
"${PROJECT_SOURCE_DIR}/l10n/${NAME}_${iter}.ts")
"${PROJECT_SOURCE_DIR}/include"
"${PROJECT_SOURCE_DIR}/src"
"${PROJECT_SOURCE_DIR}/l10n/${NAME}_${iter}.ts")
target_sources(${NAME} PRIVATE ${qm})
endforeach()
unset(qm)
@ -67,9 +67,11 @@ function(myx_qt5_target_setup NAME)
target_sources(${NAME} PRIVATE ${ARG_PUBLIC_MOC} ${ARG_PRIVATE_MOC} ${moc_cpp} ${ui_h} ${qrc_cpp})
# Установка публичных заголовочных файлов
install_relative(${PROJECT_SOURCE_DIR}
FILES ${ARG_PUBLIC_MOC}
DESTINATION ${CMAKE_INSTALL_PREFIX}
COMPONENT dev
)
if(PROJECT_IS_TOP_LEVEL)
install_relative(${PROJECT_SOURCE_DIR}
FILES ${ARG_PUBLIC_MOC}
DESTINATION ${CMAKE_INSTALL_PREFIX}
COMPONENT dev
)
endif()
endfunction()

View File

@ -76,9 +76,11 @@ function(myx_target_setup NAME)
target_compile_definitions(${NAME} PRIVATE ${ARG_COMPILE_DEFINITIONS})
# Установка публичных заголовочных файлов
install_relative(${PROJECT_SOURCE_DIR}
FILES ${ARG_PUBLIC_HEADERS}
DESTINATION ${CMAKE_INSTALL_PREFIX}
COMPONENT dev
)
if(PROJECT_IS_TOP_LEVEL)
install_relative(${PROJECT_SOURCE_DIR}
FILES ${ARG_PUBLIC_HEADERS}
DESTINATION ${CMAKE_INSTALL_PREFIX}
COMPONENT dev
)
endif()
endfunction()