2011-01-08 16:34:25 +01:00
|
|
|
|
2015-02-28 00:05:29 +01:00
|
|
|
mark_as_advanced(IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR IRRLICHT_DLL)
|
2011-01-08 16:34:25 +01:00
|
|
|
|
2021-02-18 14:50:47 +01:00
|
|
|
# Find include directory and libraries
|
2015-02-28 00:05:29 +01:00
|
|
|
|
2021-02-18 14:50:47 +01:00
|
|
|
if(TRUE)
|
2015-02-28 00:05:29 +01:00
|
|
|
find_path(IRRLICHT_INCLUDE_DIR NAMES irrlicht.h
|
2021-02-18 14:50:47 +01:00
|
|
|
DOC "Path to the directory with Irrlicht includes"
|
2011-02-16 08:43:04 +01:00
|
|
|
PATHS
|
|
|
|
/usr/local/include/irrlicht
|
|
|
|
/usr/include/irrlicht
|
2017-10-30 08:17:43 +01:00
|
|
|
/system/develop/headers/irrlicht #Haiku
|
2019-06-10 03:56:55 +02:00
|
|
|
PATH_SUFFIXES "include/irrlicht"
|
2011-02-16 08:43:04 +01:00
|
|
|
)
|
2011-01-08 02:10:20 +01:00
|
|
|
|
2021-02-18 14:50:47 +01:00
|
|
|
find_library(IRRLICHT_LIBRARY NAMES libIrrlicht Irrlicht
|
|
|
|
DOC "Path to the Irrlicht library file"
|
2011-02-16 08:43:04 +01:00
|
|
|
PATHS
|
|
|
|
/usr/local/lib
|
|
|
|
/usr/lib
|
2017-10-30 08:17:43 +01:00
|
|
|
/system/develop/lib # Haiku
|
2011-02-16 08:43:04 +01:00
|
|
|
)
|
|
|
|
endif()
|
2011-01-08 02:10:20 +01:00
|
|
|
|
2021-02-18 14:50:47 +01:00
|
|
|
# Users will likely need to edit these
|
|
|
|
mark_as_advanced(CLEAR IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR)
|
2011-01-08 02:10:20 +01:00
|
|
|
|
2015-02-28 00:05:29 +01:00
|
|
|
# On Windows, find the DLL for installation
|
2011-01-08 16:34:25 +01:00
|
|
|
if(WIN32)
|
2019-06-10 03:56:55 +02:00
|
|
|
# If VCPKG_APPLOCAL_DEPS is ON, dll's are automatically handled by VCPKG
|
|
|
|
if(NOT VCPKG_APPLOCAL_DEPS)
|
|
|
|
find_file(IRRLICHT_DLL NAMES Irrlicht.dll
|
|
|
|
DOC "Path of the Irrlicht dll (for installation)"
|
|
|
|
)
|
2011-01-08 16:34:25 +01:00
|
|
|
endif()
|
|
|
|
endif(WIN32)
|
|
|
|
|
2015-02-28 00:05:29 +01:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(Irrlicht DEFAULT_MSG IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR)
|
2011-01-08 02:10:20 +01:00
|
|
|
|