castletour/cmake_modules/FindIrrlicht.cmake

18 lines
427 B
CMake
Raw Normal View History

2015-01-05 01:33:55 +00:00
find_path(IRRLICHT_INCLUDE_DIR irrlicht/irrlicht.h
PATHS ${IRRDIR}/include
PATH_SUFFIXES irrlicht
)
message(STATUS "IRRLICHT_INCLUDE_DIR = ${IRRLICHT_INCLUDE_DIR}")
2016-03-30 14:36:13 +00:00
find_library(IRRLICHT_LIBRARY NAMES libIrrlicht.so
2015-01-05 01:33:55 +00:00
PATHS $ENV{IRRDIR}/lib
)
2016-03-30 14:36:13 +00:00
2015-01-05 01:33:55 +00:00
message(STATUS "IRRLICHT_LIBRARY = ${IRRLICHT_LIBRARY}")
if(IRRLICHT_INCLUDE_DIR AND IRRLICHT_LIBRARY)
set(Irrlicht_FOUND true)
endif(IRRLICHT_INCLUDE_DIR AND IRRLICHT_LIBRARY)