mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-21 06:43:03 +01:00
Add printable libhackrf and hackrf tools version strings
This commit is contained in:
@@ -23,11 +23,8 @@
|
||||
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
project(hackrf-tools C)
|
||||
set(MAJOR_VERSION 0)
|
||||
set(MINOR_VERSION 5)
|
||||
set(PACKAGE hackrf-tools)
|
||||
set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION})
|
||||
set(VERSION ${VERSION_STRING})
|
||||
add_definitions(-DTOOL_RELEASE="${RELEASE}")
|
||||
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../cmake/modules)
|
||||
|
||||
if(MSVC)
|
||||
|
||||
@@ -44,6 +44,10 @@ int main(void)
|
||||
hackrf_error_name(result), result);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
printf("hackrf_info version: %s\n", TOOL_RELEASE);
|
||||
printf("libhackrf version: %s (%s)\n", hackrf_library_release(),
|
||||
hackrf_library_version());
|
||||
|
||||
list = hackrf_device_list();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user