mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-11 16:36:59 +00:00
31 lines
929 B
CMake
31 lines
929 B
CMake
# Copyright 2025 Xenon Emulator Project. All rights reserved.
|
|
|
|
set(BUILD_SHARED_LIBS OFF)
|
|
set(BUILD_TESTING OFF)
|
|
set_directory_properties(PROPERTIES EXCLUDE_FROM_ALL ON SYSTEM ON)
|
|
|
|
# Set CMP0069 policy to "NEW" for building external targets with LTO enabled
|
|
set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
|
|
|
|
# fmt
|
|
if (NOT TARGET fmt::fmt)
|
|
add_subdirectory(fmt)
|
|
endif()
|
|
|
|
# rem
|
|
if (NOT TARGET rem)
|
|
add_subdirectory(rem)
|
|
endif()
|
|
|
|
# Toml11
|
|
if (NOT TARGET toml11::toml11)
|
|
add_subdirectory(toml11)
|
|
set(TOML11_INSTALL OFF)
|
|
|
|
# This removes the warnings generated by toml11
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC")
|
|
get_target_property(_toml11_compile_options toml11 INTERFACE_COMPILE_OPTIONS)
|
|
list(REMOVE_ITEM _toml11_compile_options "/Zc:preprocessor")
|
|
set_target_properties(toml11 PROPERTIES INTERFACE_COMPILE_OPTIONS ${_toml11_compile_options})
|
|
endif()
|
|
endif()
|