build(cmake): add the CMake package config and target files

Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
k4yt3x
2024-12-23 00:00:00 +00:00
parent a27c795614
commit 31c616d8df
4 changed files with 70 additions and 45 deletions

View File

@@ -0,0 +1,2 @@
@PACKAGE_INIT@
include("${CMAKE_CURRENT_LIST_DIR}/Video2XTargets.cmake")

7
cmake/version.h.in Normal file
View File

@@ -0,0 +1,7 @@
#pragma once
namespace video2x {
#define LIBVIDEO2X_VERSION_STRING "@PROJECT_VERSION@"
} // namespace video2x