(Windows) CMake configuration changes to make rlottie build correctly.

This commit is contained in:
Leon Styhre 2022-01-07 00:29:31 +01:00
parent 5f9505f780
commit 19147eee66
3 changed files with 13 additions and 3 deletions

View file

@ -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

View file

@ -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})

View file

@ -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")