From fc725df76face918fd831c58717f0fc9b8a66c03 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Wed, 10 Aug 2022 16:01:20 +0300 Subject: [PATCH] Setup Github Actions (#1107) IB-7482 Signed-off-by: Raul Metsma --- client/CMakeLists.txt | 10 +++++++++- cmake | 2 +- common | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 151e77919..eda1e13dd 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -133,6 +133,10 @@ target_link_libraries( ${PROGNAME} ${LDAP_LIBRARIES} ) +if(NOT BUILD_DATE) + string(TIMESTAMP BUILD_DATE "%d.%m.%Y") +endif() + if(${QT_VERSION_MAJOR} STREQUAL "6") find_package(Qt6 COMPONENTS Core5Compat SvgWidgets REQUIRED) target_link_libraries(${PROGNAME} Qt6::Core5Compat Qt6::SvgWidgets) @@ -148,7 +152,11 @@ set_target_properties(${PROGNAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/mac/Info.plist.cmake ) target_include_directories(${PROGNAME} PRIVATE ${CMAKE_SOURCE_DIR} ${LIBDIGIDOCPP_INCLUDE_DIR} ) -target_compile_definitions(${PROGNAME} PRIVATE MOBILEID_URL="${MOBILEID_URL}" SMARTID_URL="${SMARTID_URL}" ) +target_compile_definitions(${PROGNAME} PRIVATE + MOBILEID_URL="${MOBILEID_URL}" + SMARTID_URL="${SMARTID_URL}" + BUILD_DATE="${BUILD_DATE}" +) if( APPLE ) file(GLOB_RECURSE RESOURCE_FILES diff --git a/cmake b/cmake index 587667bbd..c06a7cd78 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit 587667bbd3c911a08e8d96b784a4aa3c5c91ccba +Subproject commit c06a7cd7803de16f61efef34827b72fe6b2e01db diff --git a/common b/common index d9623b38d..77a979e51 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit d9623b38d2bf722e958619093c1651c8c6d8a653 +Subproject commit 77a979e511033df92171de3ff7b5315b25248746