2022-01-06 22:25:22 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
#
|
|
|
|
# EmulationStation Desktop Edition
|
|
|
|
# CMakeLists.txt (external)
|
|
|
|
#
|
|
|
|
# CMake configuration for bundled dependencies built in-tree.
|
|
|
|
#
|
|
|
|
|
2022-01-06 23:29:31 +00:00
|
|
|
# On Windows, rlottie is built as a DLL file.
|
|
|
|
if(NOT WIN32)
|
|
|
|
set(BUILD_SHARED_LIBS OFF)
|
|
|
|
endif()
|
|
|
|
|
2022-01-07 21:51:14 +00:00
|
|
|
# There is a bug that makes rlottie hang forever on application shutdown if compiled using MinGW
|
2022-01-08 15:23:23 +00:00
|
|
|
# with threading support enabled. Disable it for MSVC as well to keep the behavior consistent
|
|
|
|
# across builds with either of these compilers.
|
2022-01-07 21:51:14 +00:00
|
|
|
if(WIN32)
|
|
|
|
option(LOTTIE_THREAD OFF)
|
|
|
|
endif()
|
|
|
|
|
2022-01-06 22:25:22 +00:00
|
|
|
option(LOTTIE_MODULE OFF)
|
2022-01-08 15:23:23 +00:00
|
|
|
|
|
|
|
# Only use the compiler and linker flags defined by rlottie.
|
|
|
|
unset(CMAKE_CXX_FLAGS)
|
|
|
|
unset(CMAKE_EXE_LINKER_FLAGS)
|
|
|
|
|
|
|
|
add_subdirectory("rlottie" EXCLUDE_FROM_ALL)
|