rom-properties/extlib/basisu_astc/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

17 lines
484 B
CMake
Vendored

# Basis Universal ASTC decoder
PROJECT(basisu_astc LANGUAGES CXX)
# 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_CXX_VISIBILITY_PRESET "hidden")
SET(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
ADD_LIBRARY(${PROJECT_NAME} STATIC
basisu_astc_decomp.cpp
basisu_astc_decomp.h
)
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME}
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)