CMake Modules - Config Files and version (#128)

* Setup - remove pkg-config install

* CMake Modules

* Version - note

* Package - updates

* Version - file updates

* Version File - remove static version file

* GitIgnore - version file

* Version File - Updates

* CMake Config - Targets updates

[ROCm/rocjpeg commit: 2020d2cf8f]
This commit is contained in:
Kiriti Gowda
2025-03-11 08:41:09 -07:00
committed by GitHub
parent 3901d4d68e
commit 1229372a2a
7 changed files with 85 additions and 16 deletions
-1
View File
@@ -26,7 +26,6 @@ THE SOFTWARE.
#pragma once
#include "hip/hip_runtime.h"
#include "rocjpeg_version.h"
/**
* @file rocjpeg.h
@@ -20,8 +20,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#ifndef ROCJPEG_VERSION_H
#define ROCJPEG_VERSION_H
#ifndef _ROCJPEG_VERSION_H_
#define _ROCJPEG_VERSION_H_
/*!
* \file
@@ -32,11 +32,11 @@ THE SOFTWARE.
#ifdef __cplusplus
extern "C" {
#endif
#define ROCJPEG_MAJOR_VERSION 0
#define ROCJPEG_MINOR_VERSION 10
#define ROCJPEG_MICRO_VERSION 1
#endif /* __cplusplus */
#define ROCJPEG_MAJOR_VERSION @PROJECT_VERSION_MAJOR@
#define ROCJPEG_MINOR_VERSION @PROJECT_VERSION_MINOR@
#define ROCJPEG_MICRO_VERSION @PROJECT_VERSION_PATCH@
/**
* ROCJPEG_CHECK_VERSION:
@@ -53,7 +53,7 @@ extern "C" {
(ROCJPEG_MAJOR_VERSION == (major) && ROCJPEG_MINOR_VERSION == (minor) && ROCJPEG_MICRO_VERSION >= (micro)))
#ifdef __cplusplus
}
} // end extern "C" block
#endif
#endif
#endif //_ROCJPEG_VERSION_H_ header guard