CMake: Attempt to find Irrlicht library

This commit is contained in:
stujones11 2018-09-05 19:14:00 +01:00
parent b729326267
commit bce885e935

View File

@ -20,11 +20,21 @@ configure_file (
) )
if(NOT IRRLICHT_INCLUDE_DIR) if(NOT IRRLICHT_INCLUDE_DIR)
set(IRRLICHT_INCLUDE_DIR "/usr/include/irrlicht") find_path(IRRLICHT_INCLUDE_DIR NAMES irrlicht.h
PATHS
/usr/local/include/irrlicht
/usr/include/irrlicht
/system/develop/headers/irrlicht #Haiku
)
endif() endif()
if(NOT IRRLICHT_LIBRARY) if(NOT IRRLICHT_LIBRARY)
set(IRRLICHT_LIBRARY "/usr/local/lib/libIrrlicht.so") find_library(IRRLICHT_LIBRARY NAMES libIrrlicht.so libIrrlicht.a Irrlicht
PATHS
/usr/local/lib
/usr/lib
/system/develop/lib # Haiku
)
endif() endif()
include_directories( include_directories(