File: Findpopt.cmake

package info (click to toggle)
spectrum2 2.2.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,548 kB
  • sloc: cpp: 32,594; python: 1,751; javascript: 273; makefile: 34; sql: 31; xml: 10
file content (10 lines) | stat: -rw-r--r-- 348 bytes parent folder | download
1
2
3
4
5
6
7
8
9
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 )