First commit on a late git install
This commit is contained in:
40
cmake/nostr_core-config.cmake.in
Normal file
40
cmake/nostr_core-config.cmake.in
Normal file
@@ -0,0 +1,40 @@
|
||||
@PACKAGE_INIT@
|
||||
|
||||
include(CMakeFindDependencyMacro)
|
||||
|
||||
# Find required dependencies
|
||||
find_dependency(Threads REQUIRED)
|
||||
|
||||
# Include targets
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/nostr_core-targets.cmake")
|
||||
|
||||
# Set variables for backward compatibility
|
||||
set(NOSTR_CORE_FOUND TRUE)
|
||||
set(NOSTR_CORE_VERSION "@PROJECT_VERSION@")
|
||||
|
||||
# Check which libraries are available
|
||||
set(NOSTR_CORE_STATIC_AVAILABLE FALSE)
|
||||
set(NOSTR_CORE_SHARED_AVAILABLE FALSE)
|
||||
|
||||
if(TARGET nostr_core::static)
|
||||
set(NOSTR_CORE_STATIC_AVAILABLE TRUE)
|
||||
endif()
|
||||
|
||||
if(TARGET nostr_core::shared)
|
||||
set(NOSTR_CORE_SHARED_AVAILABLE TRUE)
|
||||
endif()
|
||||
|
||||
# Provide convenient variables
|
||||
if(NOSTR_CORE_STATIC_AVAILABLE)
|
||||
set(NOSTR_CORE_LIBRARIES nostr_core::static)
|
||||
elseif(NOSTR_CORE_SHARED_AVAILABLE)
|
||||
set(NOSTR_CORE_LIBRARIES nostr_core::shared)
|
||||
endif()
|
||||
|
||||
set(NOSTR_CORE_INCLUDE_DIRS "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@/nostr")
|
||||
|
||||
# Feature information
|
||||
set(NOSTR_CORE_ENABLE_WEBSOCKETS @NOSTR_ENABLE_WEBSOCKETS@)
|
||||
set(NOSTR_CORE_USE_MBEDTLS @NOSTR_USE_MBEDTLS@)
|
||||
|
||||
check_required_components(nostr_core)
|
||||
Reference in New Issue
Block a user