mirror of https://github.com/lwvmobile/dsd-fme.git
Fix Cmake for Codec2 in Cygwin; #152
This commit is contained in:
parent
fb93289538
commit
d81e8be3cf
|
|
@ -1,8 +1,12 @@
|
||||||
# - Try to find CODEC2
|
# - Try to find CODEC2
|
||||||
# Once done this will define
|
# Once done this will define
|
||||||
|
|
||||||
#seems to work now, will want to test on multiple platforms
|
#Seems to work on Cygwin as well now -- more testing for may be required
|
||||||
#I just copied RTLSDR and modified it
|
# Not sure what causes the 'Package 'codec2', required by 'virtual:world', not found' message, but seems to work anyways
|
||||||
|
# -- Checking for module 'codec2'
|
||||||
|
# -- Package 'codec2', required by 'virtual:world', not found
|
||||||
|
# -- Found CODEC2: /usr/local/lib/libcodec2.dll.a
|
||||||
|
|
||||||
if (NOT CODEC2_FOUND)
|
if (NOT CODEC2_FOUND)
|
||||||
|
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
|
|
@ -10,11 +14,11 @@ if (NOT CODEC2_FOUND)
|
||||||
set(CODEC2_DEFINITIONS ${PC_CODEC2_CFLAGS_OTHER})
|
set(CODEC2_DEFINITIONS ${PC_CODEC2_CFLAGS_OTHER})
|
||||||
|
|
||||||
find_path(CODEC2_INCLUDE_DIR
|
find_path(CODEC2_INCLUDE_DIR
|
||||||
NAMES codec2.h
|
NAMES codec2/codec2.h codec2.h
|
||||||
HINTS ${CODEC2_PKG_INCLUDE_DIRS})
|
HINTS ${CODEC2_PKG_INCLUDE_DIRS})
|
||||||
|
|
||||||
find_library(CODEC2_LIBRARY
|
find_library(CODEC2_LIBRARY
|
||||||
NAMES codec2
|
NAMES codec2/codec2 codec2
|
||||||
HINTS ${CODEC2_PKG_LIBRARY_DIRS})
|
HINTS ${CODEC2_PKG_LIBRARY_DIRS})
|
||||||
|
|
||||||
set(CODEC2_LIBRARIES ${CODEC2_LIBRARY})
|
set(CODEC2_LIBRARIES ${CODEC2_LIBRARY})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue