2017-04-27 15:19:51 +00:00
|
|
|
set( IrrXML_SRCS
|
|
|
|
CXMLReaderImpl.h
|
|
|
|
heapsort.h
|
|
|
|
irrArray.h
|
|
|
|
irrString.h
|
|
|
|
irrTypes.h
|
|
|
|
irrXML.cpp
|
|
|
|
irrXML.h
|
|
|
|
)
|
|
|
|
|
2017-09-15 08:27:59 +00:00
|
|
|
if ( MSVC )
|
2020-02-15 10:43:35 +00:00
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4127")
|
2017-09-15 08:27:59 +00:00
|
|
|
ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS )
|
|
|
|
ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS )
|
|
|
|
endif ( MSVC )
|
|
|
|
|
2019-04-08 18:21:20 +00:00
|
|
|
IF(CMAKE_SYSTEM_NAME MATCHES "(Darwin|FreeBSD)")
|
|
|
|
add_library(IrrXML ${IrrXML_SRCS})
|
|
|
|
ELSE()
|
|
|
|
add_library(IrrXML STATIC ${IrrXML_SRCS})
|
|
|
|
ENDIF()
|
2017-04-27 15:19:51 +00:00
|
|
|
set(IRRXML_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" CACHE INTERNAL "IrrXML_Include" )
|
|
|
|
set(IRRXML_LIBRARY "IrrXML" CACHE INTERNAL "IrrXML" )
|
2017-08-20 18:07:09 +00:00
|
|
|
|
|
|
|
install(TARGETS IrrXML
|
2019-03-16 15:10:30 +00:00
|
|
|
LIBRARY DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
|
2017-08-20 18:07:09 +00:00
|
|
|
ARCHIVE DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
|
2019-03-16 15:10:30 +00:00
|
|
|
RUNTIME DESTINATION ${ASSIMP_BIN_INSTALL_DIR}
|
|
|
|
FRAMEWORK DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
|
2017-08-20 18:07:09 +00:00
|
|
|
COMPONENT ${LIBASSIMP_COMPONENT})
|