-
Notifications
You must be signed in to change notification settings - Fork 7
/
Findh2sl.cmake.in
30 lines (20 loc) · 1.13 KB
/
Findh2sl.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
find_path(H2SL_INCLUDE_DIR NAMES h2sl/pos.h
HINTS @CMAKE_INSTALL_PREFIX@/include)
find_library(H2SL_COMMON_LIBRARY NAMES h2sl-common
HINTS @CMAKE_INSTALL_PREFIX@/lib)
find_library(H2SL_SYMBOL_LIBRARY NAMES h2sl-symbol
HINTS @CMAKE_INSTALL_PREFIX@/lib)
find_library(H2SL_LANGUAGE_LIBRARY NAMES h2sl-language
HINTS @CMAKE_INSTALL_PREFIX@/lib)
find_library(H2SL_PARSER_LIBRARY NAMES h2sl-parser
HINTS @CMAKE_INSTALL_PREFIX@/lib)
find_library(H2SL_LLM_LIBRARY NAMES h2sl-llm
HINTS @CMAKE_INSTALL_PREFIX@/lib)
find_library(H2SL_DCG_LIBRARY NAMES h2sl-dcg
HINTS @CMAKE_INSTALL_PREFIX@/lib)
find_library(H2SL_UTIL_LIBRARY NAMES h2sl-util
HINTS @CMAKE_INSTALL_PREFIX@/lib)
set(H2SL_LIBRARIES ${H2SL_UTIL_LIBRARY} ${H2SL_DCG_LIBRARY} ${H2SL_LLM_LIBRARY} ${H2SL_PARSER_LIBRARY} ${H2SL_LANGUAGE_LIBRARY} ${H2SL_SYMBOL_LIBRARY} ${H2SL_COMMON_LIBRARY})
mark_as_advanced(H2SL_INCLUDE_DIR H2SL_LIBRARIES)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(h2sl FOUND_VAR h2sl_FOUND REQUIRED_VARS H2SL_LIBRARIES H2SL_INCLUDE_DIR)