Findhamlib.cmake tweaks
This commit is contained in:
parent
38e39ee074
commit
6471287045
|
@ -4,6 +4,7 @@
|
||||||
# Change Log: Charles J. Cliffe <cj@cubicproductions.com>
|
# Change Log: Charles J. Cliffe <cj@cubicproductions.com>
|
||||||
# Updates:
|
# Updates:
|
||||||
# Jan 2015 - Add /opt/ paths for OSX MacPorts
|
# Jan 2015 - Add /opt/ paths for OSX MacPorts
|
||||||
|
# - Fix HAMLIB_INCLUDE_DIR absolute search
|
||||||
# TODO:
|
# TODO:
|
||||||
# Windows support
|
# Windows support
|
||||||
# Static support
|
# Static support
|
||||||
|
@ -15,15 +16,11 @@
|
||||||
set(HAMLIB_FOUND FALSE)
|
set(HAMLIB_FOUND FALSE)
|
||||||
|
|
||||||
find_path(HAMLIB_INCLUDE_DIR
|
find_path(HAMLIB_INCLUDE_DIR
|
||||||
NAMES rig.h
|
NAMES hamlib/rig.h
|
||||||
PATHS
|
PATHS
|
||||||
/usr/include/hamlib
|
|
||||||
/usr/include
|
/usr/include
|
||||||
/usr/local/include/hamlib
|
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
/opt/local/include/hamlib
|
|
||||||
/opt/local/include
|
/opt/local/include
|
||||||
/opt/local/include/hamlib
|
|
||||||
)
|
)
|
||||||
|
|
||||||
find_library(HAMLIB_LIBRARY
|
find_library(HAMLIB_LIBRARY
|
||||||
|
@ -43,7 +40,7 @@ find_library(HAMLIB_LIBRARY
|
||||||
|
|
||||||
if(HAMLIB_INCLUDE_DIR AND HAMLIB_LIBRARY)
|
if(HAMLIB_INCLUDE_DIR AND HAMLIB_LIBRARY)
|
||||||
set(HAMLIB_FOUND TRUE)
|
set(HAMLIB_FOUND TRUE)
|
||||||
message(STATUS "Hamlib version: ${VERSION}")
|
# message(STATUS "Hamlib version: ${VERSION}")
|
||||||
message(STATUS "Found hamlib library directory at: ${HAMLIB_LIBRARY}")
|
message(STATUS "Found hamlib library directory at: ${HAMLIB_LIBRARY}")
|
||||||
message(STATUS "Found hamlib include directory at: ${HAMLIB_INCLUDE_DIR}")
|
message(STATUS "Found hamlib include directory at: ${HAMLIB_INCLUDE_DIR}")
|
||||||
endif(HAMLIB_INCLUDE_DIR AND HAMLIB_LIBRARY)
|
endif(HAMLIB_INCLUDE_DIR AND HAMLIB_LIBRARY)
|
||||||
|
|
Loading…
Reference in New Issue