mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-30 14:17:51 +02:00
Changed back to pkg-config for codec2
This commit is contained in:
@ -29,7 +29,13 @@ if (MSVC)
|
|||||||
target_link_libraries(m17_decoder PRIVATE libcodec2)
|
target_link_libraries(m17_decoder PRIVATE libcodec2)
|
||||||
|
|
||||||
else (MSVC)
|
else (MSVC)
|
||||||
target_link_libraries(m17_decoder PUBLIC codec2)
|
find_package(PkgConfig)
|
||||||
|
|
||||||
|
pkg_check_modules(LIBCODEC2 REQUIRED codec2)
|
||||||
|
|
||||||
|
target_include_directories(m17_decoder PUBLIC ${LIBCODEC2_INCLUDE_DIRS})
|
||||||
|
target_link_directories(m17_decoder PUBLIC ${LIBCODEC2_LIBRARY_DIRS})
|
||||||
|
target_link_libraries(m17_decoder PUBLIC ${LIBCODEC2_LIBRARIES})
|
||||||
|
|
||||||
# Include it because for some reason pkgconfig doesn't look here?
|
# Include it because for some reason pkgconfig doesn't look here?
|
||||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
|
Reference in New Issue
Block a user