Switching to CMake (again).

This commit is contained in:
Deathsbreed
2015-01-04 19:33:55 -06:00
parent 046149db06
commit 99484aeb10
186 changed files with 70 additions and 39543 deletions

16
cmake/FindIrrlicht.cmake Normal file
View File

@ -0,0 +1,16 @@
find_path(IRRLICHT_INCLUDE_DIR irrlicht/irrlicht.h
PATHS ${IRRDIR}/include
PATH_SUFFIXES irrlicht
)
message(STATUS "IRRLICHT_INCLUDE_DIR = ${IRRLICHT_INCLUDE_DIR}")
find_library(IRRLICHT_LIBRARY NAMES Irrlicht
PATHS $ENV{IRRDIR}/lib
)
message(STATUS "IRRLICHT_LIBRARY = ${IRRLICHT_LIBRARY}")
if(IRRLICHT_INCLUDE_DIR AND IRRLICHT_LIBRARY)
set(Irrlicht_FOUND true)
endif(IRRLICHT_INCLUDE_DIR AND IRRLICHT_LIBRARY)