chore: update files of project

This commit is contained in:
Qsaker 2024-01-29 21:54:37 +08:00
parent 3844d85547
commit ea52ed76a9
2 changed files with 4 additions and 3 deletions

View File

@ -1,8 +1,8 @@
# Get the last tag.
function(sak_git_get_last_tag prefix)
function(sak_git_get_last_tag working_dir prefix)
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --abbrev=0 --tags
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMAND git describe --abbrev=0 --tags
WORKING_DIRECTORY ${working_dir}
OUTPUT_VARIABLE GIT_LATEST_TAG
OUTPUT_STRIP_TRAILING_WHITESPACE)
message("Latest git tag: ${GIT_LATEST_TAG}")

View File

@ -23,6 +23,7 @@ set(SAK_QT_COMPONENTS
SerialBus)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS ${SAK_QT_COMPONENTS})
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS ${SAK_QT_COMPONENTS})
add_compile_definitions(SAK_BUILD_WITH_SAK)
if(NOT Qt6_VERSION VERSION_LESS "6.5.0")
find_package(Qt${QT_VERSION_MAJOR} QUIET COMPONENTS Bluetooth)