From bce885e93524715589ca9cae8e046405a99a2795 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Wed, 5 Sep 2018 19:14:00 +0100 Subject: [PATCH] CMake: Attempt to find Irrlicht library --- CMakeLists.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0447e25..d4fb846 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,11 +20,21 @@ configure_file ( ) 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() 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() include_directories(