mirror of
https://github.com/libAthena/athena.git
synced 2025-12-12 14:46:12 +00:00
CMake package exports
This commit is contained in:
22
AthenaConfig.cmake.in
Normal file
22
AthenaConfig.cmake.in
Normal file
@@ -0,0 +1,22 @@
|
||||
# - Config file for the Athena package
|
||||
# It defines the following variables
|
||||
# ATHENA_INCLUDE_DIR - include directory for Athena
|
||||
# ATHENA_LIBRARIES - libraries to link against
|
||||
# ATHENA_ICON - path to Athena.ico
|
||||
|
||||
# Compute paths
|
||||
get_filename_component(ATHENA_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
set(ATHENA_INCLUDE_DIR "@CONF_INCLUDE_DIR@")
|
||||
|
||||
# Our library dependencies (contains definitions for IMPORTED targets)
|
||||
if(NOT TARGET AthenaCore AND NOT Athena_BINARY_DIR)
|
||||
include("${ATHENA_CMAKE_DIR}/AthenaTargets.cmake")
|
||||
endif()
|
||||
|
||||
# These are IMPORTED targets created by AthenaTargets.cmake
|
||||
set(ATHENA_LIBRARIES AthenaCore AthenaSakura AthenaZelda AthenaWiiSave)
|
||||
|
||||
# Set icon location if on windows
|
||||
if(WIN32 AND NOT CYGWIN)
|
||||
set(ATHENA_ICON "@CONF_ICON_DIR@")
|
||||
endif()
|
||||
Reference in New Issue
Block a user