Skip to content
Snippets Groups Projects
Commit 2149821e authored by calrama's avatar calrama
Browse files

Update use of (git) source version

parent 000a8745
No related branches found
No related tags found
No related merge requests found
Pipeline #26344 failed
cmake_minimum_required(VERSION 3.13)
file(READ VERSION PROJECT_VERSION)
exec_program("git" ${CMAKE_CURRENT_SOURCE_DIR} ARGS "describe --dirty --always --exclude '*'" OUTPUT_VARIABLE SOURCE_VERSION)
project(biotracker-lucaskanade.bio_tracker)
project(biotracker-background_subtraction_tracker
LANGUAGES CXX
)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
option(PACKAGE_WINDOWS_MSI "Create .msi package" OFF)
endif()
option(PACKAGE_TXZ "Create .tar.xz package" OFF)
find_package(biotracker-utility 0.2 REQUIRED)
find_package(biotracker-utility REQUIRED)
add_subdirectory(Src)
include(cmake/Locate.cmake)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
install(TARGETS ${target} DESTINATION .)
option(INSTALL_REQUIRED_SYSTEM_LIBRARIES "Install required system libraries" OFF)
if(INSTALL_REQUIRED_SYSTEM_LIBRARIES)
set(CMAKE_INSTALL_UCRT_LIBRARIES TRUE)
......@@ -38,8 +38,7 @@ endif()
set(CPACK_PACKAGE_NAME "BioTracker Plugin BackgroundSubtraction")
set(CPACK_PACKAGE_VENDOR "Biorobotics Lab / FU Berlin")
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set(CPACK_PACKAGE_VERSION ${SOURCE_VERSION})
if(PACKAGE_WINDOWS_MSI)
set(CPACK_GENERATOR "WIX")
......
{ "type" : "TrackingPlugin",
"name" : "Background Subtraction Tracker",
"longname" : "some long name",
"version" : "CURRENT_GIT_HASH",
"version" : "SOURCE_VERSION",
"dependencies" : []
}
......@@ -2,9 +2,6 @@
#### Biotracker: backgroundSubtraction
##############################################################
include(biotracker-utility/VSSugar)
VSSourceGroups(${CMAKE_CURRENT_LIST_DIR})
include(biotracker-utility/TrackerPlugin)
set(target biotracker-backgroundSubtraction.bio_tracker)
......
{ "type" : "TrackingPlugin",
"name" : "Background Subtraction Tracker",
"longname" : "some long name",
"version" : "@CURRENT_GIT_HASH@",
"version" : "@SOURCE_VERSION@",
"dependencies" : []
}
0.2.0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment