summaryrefslogtreecommitdiff
path: root/hangul-config.cmake.in
blob: ea67762075d10a55e956b1771746331c8a8512fb (plain)
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
# libhangul
# Copyright 2021 Choe Hwanjin
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

include("${CMAKE_CURRENT_LIST_DIR}/hangul-config-version.cmake")

@PACKAGE_INIT@

message("LIBHANGUL_INCLUDE_DIR: @PACKAGE_LIBHANGUL_INCLUDE_DIR@")
message("LIBHANGUL_LIBRARY_DIR: @PACKAGE_LIBHANGUL_LIBRARY_DIR@")

set_and_check(LIBHANGUL_INCLUDE_DIR "@PACKAGE_LIBHANGUL_INCLUDE_DIR@")
set_and_check(LIBHANGUL_LIBRARY_DIR "@PACKAGE_LIBHANGUL_LIBRARY_DIR@")

set(LIBHANGUL_INCLUDE_DIR2 "@LIBHANGUL_INCLUDE_DIR@")
set(LIBHANGUL_LIBRARY_DIR2 "@LIBHANGUL_LIBRARY_DIR@")


add_library(hangul SHARED IMPORTED)
set_target_properties(hangul PROPERTIES
    INTERFACE_INCLUDE_DIRECTORIES "${LIBHANGUL_INCLUDE_DIR}"
    IMPORTED_LOCATION "${LIBHANGUL_LIBRARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}hangul${CMAKE_SHARED_LIBRARY_SUFFIX}"
)