rom-properties/extlib/uniwidth/CMakeLists.txt
David Korth f0647da5eb Remove CheckHiddenVisibility.cmake.
The root CMakeLists.txt has a minimum CMake version of 3.5, and
CheckHiddenVisibility.cmake's workarounds are only needed for
CMake 3.2 and earlier.

Set CMP0063 unconditionally (added in CMake 3.3) and set the
CMAKE_<LANG>_VISIBILITY_PRESET and CMAKE_VISIBILITY_INLINES_HIDDEN
variables where CHECK_HIDDEN_VISIBILITY() was called before.

There should effectively be no code changes with this commit.
2025-01-18 22:34:24 -05:00

22 lines
617 B
CMake
Vendored

# uniwidth: Unicode character width subset of gnulib.
PROJECT(uniwidth LANGUAGES C)
# rom-properties: Hide symbols by default, since we don't want them
# leaking from the static library to the plugins.
CMAKE_POLICY(SET CMP0063 NEW)
SET(CMAKE_C_VISIBILITY_PRESET "hidden")
SET(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
# Sources
SET(uniwidth_SRCS width.c)
SET(uniwidth_H bitmap.h cjk.h unitypes.h uniwidth.h width0.h width2.h)
######################
# Build the library. #
######################
ADD_LIBRARY(uniwidth STATIC ${uniwidth_SRCS})
TARGET_INCLUDE_DIRECTORIES(uniwidth
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
)