Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cmake] build using external lodepng
- Loading branch information
1 parent
bb9c32e
commit 605b6b6
Showing
6 changed files
with
47 additions
and
8,232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# - Try to find lodepng | ||
# Once done this will define | ||
# lodepng_FOUND - cJSON was found | ||
# lodepng_INCLUDE_DIRS - cJSON include directories | ||
# lodepng_LIBRARIES - cJSON libraries for linking | ||
|
||
find_path(lodepng_INCLUDE_DIR | ||
NAMES lodepng.h) | ||
|
||
find_library(lodepng_LIBRARY | ||
NAMES lodepng) | ||
|
||
if (lodepng_INCLUDE_DIR AND lodepng_LIBRARY) | ||
set(lodepng_FOUND ON) | ||
set(lodepng_INCLUDE_DIRS ${lodepng_INCLUDE_DIR}) | ||
set(lodepng_LIBRARIES ${lodepng_LIBRARY}) | ||
endif() | ||
|
||
mark_as_advanced(lodepng_INCLUDE_DIRS lodepng_LIBRARIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.