-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathhalConfig.cmake.in
63 lines (50 loc) · 1.94 KB
/
halConfig.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# halConfig.cmake
# --------------------
#
# HAL cmake module.
# This module sets the following variables in your project::
#
# hal_FOUND - true if hal and all required components found on the system
# hal_VERSION - hal version in format Major.Minor.Release
# hal_INCLUDE_DIR - Directory where hal headers are located.
# CMAKE_MODULE_PATH - appends location of accompanying FindFilesystem.cmake and
# hal_cmake_tools.cmake modules.
#
#
# Available components: None
#
#
# Exported targets::
#
# If hal is found, this module defines the following :prop_tgt:`IMPORTED`
# interface library targets::
#
# hal::core -
# hal::netlist -
@PACKAGE_INIT@
set(PN hal)
set(${PN}_VERSION @HAL_VERSION_MAJOR@.@HAL_VERSION_MINOR@.@HAL_VERSION_PATCH@)
set_and_check(${PN}_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_INCLUDEDIR@")
set(${PN}_LIBRARY "")
set(${PN}_DEFINITIONS USING_${PN})
check_required_components(${PN})
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
include(hal_plugin)
find_package(Filesystem REQUIRED Final Experimental)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/pybind11 ${CMAKE_BINARY_DIR}/deps/pybind11)
set(spdlog_VERSION 1.9.2)
add_library(spdlog::spdlog INTERFACE IMPORTED)
set_target_properties(spdlog::spdlog PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_LIST_DIR}/spdlog-${spdlog_VERSION}/include"
)
set_and_check(${PN}_GENVERSION_PATH "${CMAKE_CURRENT_LIST_DIR}")
if(NOT (CMAKE_VERSION VERSION_LESS 3.0))
#-----------------------------------------------------------------------------
# Don't include targets if this file is being picked up by another
# project which has already built this as a subproject
#-----------------------------------------------------------------------------
if(NOT TARGET ${PN}::core)
include("${CMAKE_CURRENT_LIST_DIR}/${PN}Targets.cmake")
endif()
endif()
set(${PN}_FOUND true)