Commit 916a3bc8 authored by Ghislain MARY's avatar Ghislain MARY

Export correct library when building with CMake.

parent e4789cf0
......@@ -149,9 +149,9 @@ write_basic_package_version_file(
export(EXPORT ${EXPORT_TARGETS_NAME}Targets
FILE "${CMAKE_CURRENT_BINARY_DIR}/BZRTPTargets.cmake"
)
configure_file(cmake/BZRTPConfig.cmake
configure_file(cmake/BZRTPConfig.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/BZRTPConfig.cmake"
COPYONLY
@ONLY
)
set(CONFIG_PACKAGE_LOCATION "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake")
......
......@@ -45,5 +45,9 @@ else()
endif()
list(APPEND BZRTP_INCLUDE_DIRS ${BCTOOLBOX_INCLUDE_DIRS})
list(APPEND BZRTP_LIBRARIES ${BCTOOLBOX_LIBRARIES})
set(BZRTP_LIBRARIES bzrtp)
if(@ENABLE_SHARED@)
set(BZRTP_LIBRARIES bzrtp)
else()
set(BZRTP_LIBRARIES bzrtp-static)
endif()
set(BZRTP_FOUND 1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment