spectrum2/cmake_modules/poptConfig.cmake

11 lines
348 B
CMake
Raw Permalink Normal View History

2011-09-22 11:25:55 +02:00
FIND_LIBRARY(POPT_LIBRARY NAMES popt)
FIND_PATH(POPT_INCLUDE_DIR NAMES "popt.h")
if( POPT_LIBRARY AND POPT_INCLUDE_DIR )
message( STATUS "Found popt: ${POPT_LIBRARY}, ${POPT_INCLUDE_DIR}")
set( POPT_FOUND 1 )
else( POPT_LIBRARY AND POPT_INCLUDE_DIR )
message( STATUS "Could NOT find popt" )
endif( POPT_LIBRARY AND POPT_INCLUDE_DIR )