diff --git a/cmake_modules/FindPopt.cmake b/cmake_modules/FindPopt.cmake new file mode 100644 index 0000000000000000000000000000000000000000..a1a0b2eead36f293864a02e839cc76540728901b --- /dev/null +++ b/cmake_modules/FindPopt.cmake @@ -0,0 +1,10 @@ +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 )