diff options
author | Denton Woods <denton.woods@gmail.com> | 2016-12-31 16:23:57 -0600 |
---|---|---|
committer | Denton Woods <denton.woods@gmail.com> | 2016-12-31 16:23:57 -0600 |
commit | 6b2c9efecf3c2b04cc8942f30c3549cccc5be155 (patch) | |
tree | 7468af97dd8ccde848aa7a3c0312acfdde407116 | |
parent | e814a7f4b2bcf6524fff70c9022fa44e62dbae5e (diff) | |
download | devil-6b2c9efecf3c2b04cc8942f30c3549cccc5be155.tar.gz |
- Adding libmng
-rw-r--r-- | DevIL/cmake/Modules/FindLCMS2.cmake | 2 | ||||
-rw-r--r-- | DevIL/cmake/Modules/FindMNG.cmake | 30 |
2 files changed, 32 insertions, 0 deletions
diff --git a/DevIL/cmake/Modules/FindLCMS2.cmake b/DevIL/cmake/Modules/FindLCMS2.cmake index 18396165..1dcefa43 100644 --- a/DevIL/cmake/Modules/FindLCMS2.cmake +++ b/DevIL/cmake/Modules/FindLCMS2.cmake @@ -1,3 +1,5 @@ +# Denton: Found in LibMNG sources +# # - Find LCMS version 2 library # # LCMS2_INCLUDE_DIR - Where to find lcms2.h, etc. diff --git a/DevIL/cmake/Modules/FindMNG.cmake b/DevIL/cmake/Modules/FindMNG.cmake new file mode 100644 index 00000000..019f33c9 --- /dev/null +++ b/DevIL/cmake/Modules/FindMNG.cmake @@ -0,0 +1,30 @@ +# Denton: Found at https://github.com/realhidden/stratagus/blob/master/cmake/modules/FindMNG.cmake +# +# - Try to find the MNG library +# Once done this will define +# +# MNG_FOUND - system has Mikmod +# MNG_INCLUDE_DIR - the Mikmod include directory +# MNG_LIBRARY - The Mikmod library + +# Copyright (c) 2011, Pali Rohár <pali.rohar@gmail.com> +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +if(MNG_INCLUDE_DIR AND MNG_LIBRARY) + set(MNG_FOUND true) +else() + find_path(MNG_INCLUDE_DIR libmng.h) + find_library(MNG_LIBRARY NAMES mng) + + if(MNG_INCLUDE_DIR AND MNG_LIBRARY) + set(MNG_FOUND true) + message(STATUS "Found MNG: ${MNG_LIBRARY}") + else() + set(MNG_FOUND false) + message(STATUS "Could not find MNG") + endif() + + mark_as_advanced(MNG_INCLUDE_DIR MNG_LIBRARY) +endif() |