From f1f516c637a420daf207bb27a3ffbc6afe47ee4f Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 12 Sep 2017 01:19:01 +0200 Subject: [PATCH] PlutoSDR: Debian build: fixed cmake file for libiio build (1) --- libiio/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libiio/CMakeLists.txt b/libiio/CMakeLists.txt index afe960fdd..5d01b71f4 100644 --- a/libiio/CMakeLists.txt +++ b/libiio/CMakeLists.txt @@ -305,7 +305,9 @@ if(WITH_TESTS) add_subdirectory(tests) endif() -add_library(iio ${LIBIIO_CFILES} ${LIBIIO_HEADERS} ${LIBIIO_EXTRA_HEADERS}) +add_definitions(-DQT_SHARED) + +add_library(iio SHARED ${LIBIIO_CFILES} ${LIBIIO_HEADERS} ${LIBIIO_EXTRA_HEADERS}) set_target_properties(iio PROPERTIES VERSION ${VERSION} SOVERSION ${LIBIIO_VERSION_MAJOR} @@ -324,7 +326,7 @@ endif() if(NOT SKIP_INSTALL_ALL) install(TARGETS iio ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION lib RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} FRAMEWORK DESTINATION /Library/Frameworks PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})