Several distributions usually decide for shared external libraries instead of an usual embedded, for security reasons, duplicatiion issues. This change enable the possibility to set SYSTEM_IRRXML=ON for detect and build against a system installed irrxml. By default, the internal copy is compiled. Changes on build: - Added a FindIrrXML cmake module. - Moved the source recipe for proper CMakeLists inside contrib directory - Includes aren't path based anymore, using the provided INCLUDE_DIR - Compiler option are grouped in a singled entry on main CMakeLists Note: Current internal assimp irrXML is older than upstream irrlicht 1.8.4. To enable usage of this version, code need to be patched.
18 lines
521 B
CMake
18 lines
521 B
CMake
# Find IrrXMl from irrlicht project
|
|
#
|
|
# Find LibIrrXML headers and library
|
|
#
|
|
# IRRXML_FOUND - IrrXML found
|
|
# IRRXML_INCLUDE_DIR - Headers location
|
|
# IRRXML_LIBRARY - IrrXML main library
|
|
|
|
find_path(IRRXML_INCLUDE_DIR irrXML.h
|
|
PATH_SUFFIXES include/irrlicht include/irrxml)
|
|
find_library(IRRXML_LIBRARY IrrXML)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(IrrXML REQUIRED_VARS IRRXML_INCLUDE_DIR IRRXML_LIBRARY)
|
|
|
|
|
|
mark_as_advanced(IRRXML_INCLUDE_DIR IRRXML_LIBRARY)
|