Some checks failed
CI/CD Pipeline / Code Linting (push) Failing after 22s
CI/CD Pipeline / Build and Test (Debug, clang, ubuntu-latest) (push) Failing after 5m44s
CI/CD Pipeline / Build and Test (Debug, gcc, ubuntu-latest) (push) Failing after 5m33s
CI/CD Pipeline / Build and Test (Release, clang, ubuntu-20.04) (push) Failing after 6m12s
CI/CD Pipeline / Build and Test (Release, clang, ubuntu-latest) (push) Failing after 5m13s
CI/CD Pipeline / Build and Test (Release, gcc, ubuntu-20.04) (push) Failing after 5m30s
CI/CD Pipeline / Build and Test (Release, gcc, ubuntu-latest) (push) Failing after 5m33s
CI/CD Pipeline / Docker Build Test (push) Failing after 13s
CI/CD Pipeline / Performance Benchmarks (push) Has been skipped
CI/CD Pipeline / Build Documentation (push) Successful in 31s
CI/CD Pipeline / Create Release Package (push) Has been skipped
39 lines
1.1 KiB
CMake
39 lines
1.1 KiB
CMake
# SVMClassifierConfig.cmake.in
|
|
# CMake configuration file for SVMClassifier package
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
# Set the version
|
|
set(SVMClassifier_VERSION @PACKAGE_VERSION@)
|
|
|
|
# Find required dependencies
|
|
find_dependency(Torch REQUIRED)
|
|
find_dependency(PkgConfig REQUIRED)
|
|
|
|
# Include nlohmann_json
|
|
if(NOT TARGET nlohmann_json::nlohmann_json)
|
|
find_package(nlohmann_json 3.11.0 REQUIRED)
|
|
endif()
|
|
|
|
# Include the targets file
|
|
include("${CMAKE_CURRENT_LIST_DIR}/SVMClassifierTargets.cmake")
|
|
|
|
# Set variables for backward compatibility
|
|
set(SVMClassifier_LIBRARIES SVMClassifier::svm_classifier)
|
|
set(SVMClassifier_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include")
|
|
|
|
# Verify that the targets were imported
|
|
if(NOT TARGET SVMClassifier::svm_classifier)
|
|
message(FATAL_ERROR "SVMClassifier::svm_classifier target not found")
|
|
endif()
|
|
|
|
# Set found flag
|
|
set(SVMClassifier_FOUND TRUE)
|
|
|
|
# Print status message
|
|
if(NOT SVMClassifier_FIND_QUIETLY)
|
|
message(STATUS "Found SVMClassifier: ${PACKAGE_PREFIX_DIR} (found version \"${SVMClassifier_VERSION}\")")
|
|
endif()
|
|
|
|
# Check version compatibility
|
|
check_required_components(SVMClassifier) |