diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-05-10 15:44:51 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-05-10 15:44:51 +0200 |
commit | 469a84c10ba60fba4a513c1b1a0eea600cd7b22f (patch) | |
tree | 4de3514353341f68fd63d3c12fa0a162008d3209 /cmake_modules/FindSOIL.cmake | |
parent | 2017-04-23 (diff) | |
download | AltCraft-469a84c10ba60fba4a513c1b1a0eea600cd7b22f.tar AltCraft-469a84c10ba60fba4a513c1b1a0eea600cd7b22f.tar.gz AltCraft-469a84c10ba60fba4a513c1b1a0eea600cd7b22f.tar.bz2 AltCraft-469a84c10ba60fba4a513c1b1a0eea600cd7b22f.tar.lz AltCraft-469a84c10ba60fba4a513c1b1a0eea600cd7b22f.tar.xz AltCraft-469a84c10ba60fba4a513c1b1a0eea600cd7b22f.tar.zst AltCraft-469a84c10ba60fba4a513c1b1a0eea600cd7b22f.zip |
Diffstat (limited to '')
-rw-r--r-- | cmake_modules/FindSOIL.cmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cmake_modules/FindSOIL.cmake b/cmake_modules/FindSOIL.cmake new file mode 100644 index 0000000..60eba06 --- /dev/null +++ b/cmake_modules/FindSOIL.cmake @@ -0,0 +1,28 @@ +# Find SOIL +# Find the SOIL includes and library +# +# SOIL_INCLUDE_DIRS - where to find SOIL.h, etc. +# SOIL_LIBRARIES - List of libraries when using SOIL. +# SOIL_FOUND - True if SOIL found. +# +# Based on the FindZLIB.cmake module. + +IF (SOIL_INCLUDE_DIR) + # Already in cache, be silent + SET(SOIL_FIND_QUIETLY TRUE) +ENDIF (SOIL_INCLUDE_DIR) + +FIND_PATH(SOIL_INCLUDE_DIR SOIL.h PATH_SUFFIXES include/SOIL include) + +SET(SOIL_NAMES SOIL Soil soil) +FIND_LIBRARY(SOIL_LIBRARY NAMES ${SOIL_NAMES} ) +MARK_AS_ADVANCED( SOIL_LIBRARY SOIL_INCLUDE_DIR ) + +# Per-recommendation +SET(SOIL_INCLUDE_DIRS "${SOIL_INCLUDE_DIR}") +SET(SOIL_LIBRARIES "${SOIL_LIBRARY}") + +# handle the QUIETLY and REQUIRED arguments and set SOIL_FOUND to TRUE if +# all listed variables are TRUE +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SOIL DEFAULT_MSG SOIL_LIBRARIES SOIL_INCLUDE_DIRS)
\ No newline at end of file |