FindPotrace.cmake revision 15cb86b173e84197b53dab321aec908c1aaf3eb5
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanis# POTRACE_FOUND - system has Potrace
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanis# POTRACE_INCLUDE_DIR - the Potrace include directory
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanis# POTRACE_LIBRARIES - The libraries needed to use Potrace
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex ValavanisFIND_PATH(POTRACE_INCLUDE_DIR potracelib.h
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex ValavanisFIND_LIBRARY(POTRACE_LIBRARY NAMES potrace libpotrace
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanisif (POTRACE_INCLUDE_DIR AND POTRACE_LIBRARY)
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanis set(POTRACE_FOUND TRUE)
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanis set(POTRACE_LIBRARIES ${POTRACE_LIBRARY})
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavaniselse (POTRACE_INCLUDE_DIR AND POTRACE_LIBRARY)
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanis set(POTRACE_FOUND FALSE)
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanisendif (POTRACE_INCLUDE_DIR AND POTRACE_LIBRARY)
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanisif (POTRACE_FOUND)
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanis if (NOT Potrace_FIND_QUIETLY)
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanis message(STATUS "Found potrace: ${POTRACE_LIBRARIES}")
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanis endif (NOT Potrace_FIND_QUIETLY)
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavaniselse (POTRACE_FOUND)
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanis if (NOT Potrace_FIND_QUIETLY)
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanis message(STATUS "don't find potrace")
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanis endif (NOT Potrace_FIND_QUIETLY)
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex Valavanisendif (POTRACE_FOUND)
15cb86b173e84197b53dab321aec908c1aaf3eb5Alex ValavanisMARK_AS_ADVANCED(POTRACE_INCLUDE_DIR POTRACE_LIBRARIES POTRACE_LIBRARY)