mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
(Windows) CMake configuration changes to make rlottie build correctly.
This commit is contained in:
parent
5f9505f780
commit
19147eee66
|
@ -116,7 +116,9 @@ endif()
|
|||
#---------------------------------------------------------------------------------------------------
|
||||
# Miscellaneous configuration.
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-macros")
|
||||
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-macros")
|
||||
endif()
|
||||
|
||||
#---------------------------------------------------------------------------------------------------
|
||||
# OS-specific installation and package generation setup.
|
||||
|
@ -153,6 +155,7 @@ if(WIN32)
|
|||
../libssl-1_1-x64.dll
|
||||
../MSVCP140.dll
|
||||
../pugixml.dll
|
||||
../rlottie.dll
|
||||
../SDL2.dll
|
||||
../VCOMP140.DLL
|
||||
../VCRUNTIME140.dll
|
||||
|
@ -172,6 +175,7 @@ if(WIN32)
|
|||
../libcurl-x64.dll
|
||||
../libfreetype.dll
|
||||
../libpugixml.dll
|
||||
../librlottie.dll
|
||||
../libssl-1_1-x64.dll
|
||||
../SDL2.dll
|
||||
../vcomp140.dll
|
||||
|
|
|
@ -167,7 +167,9 @@ set(CORE_SOURCES
|
|||
#---------------------------------------------------------------------------------------------------
|
||||
# Miscellaneous configuration.
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-macros")
|
||||
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-macros")
|
||||
endif()
|
||||
|
||||
include_directories(${COMMON_INCLUDE_DIRS})
|
||||
add_library(es-core STATIC ${CORE_SOURCES} ${CORE_HEADERS})
|
||||
|
|
6
external/CMakeLists.txt
vendored
6
external/CMakeLists.txt
vendored
|
@ -6,6 +6,10 @@
|
|||
# CMake configuration for bundled dependencies built in-tree.
|
||||
#
|
||||
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
# On Windows, rlottie is built as a DLL file.
|
||||
if(NOT WIN32)
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
endif()
|
||||
|
||||
option(LOTTIE_MODULE OFF)
|
||||
add_subdirectory("rlottie")
|
||||
|
|
Loading…
Reference in a new issue