mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00

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.
29 lines
874 B
CMake
Vendored
29 lines
874 B
CMake
Vendored
# PowerVR Texture Compression decompressor from the PowerVR Native SDK.
|
|
# Copyright (c) Imagination Technologies Ltd.
|
|
# Licensed under the MIT License.
|
|
# References:
|
|
# - PowerVR commit: c1605c99281797e5cd4c8439e1bc679706bbb311
|
|
# - https://github.com/powervr-graphics/Native_SDK
|
|
PROJECT(PowerVR 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)
|
|
|
|
# Sources.
|
|
SET(libpvrtc_SRCS PVRTDecompress.cpp)
|
|
# Headers.
|
|
SET(libpvrtc_H PVRTDecompress.h)
|
|
|
|
######################
|
|
# Build the library. #
|
|
######################
|
|
|
|
ADD_LIBRARY(pvrtc STATIC ${libpvrtc_SRCS} ${libpvrtc_H})
|
|
TARGET_INCLUDE_DIRECTORIES(pvrtc
|
|
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|