Commit 9d8ed7ca authored by Ghislain MARY's avatar Ghislain MARY

Allow inclusion of CMake project in a global CMake project.

parent 34f9f412
......@@ -39,7 +39,11 @@ option(ENABLE_MSPLUGIN "Enable compilation of the mediastreamer2 plugin." YES)
option(ENABLE_STATIC "Build static library (default is shared library)." NO)
if(ENABLE_MSPLUGIN)
find_package(Mediastreamer2)
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
include("${EP_ms2_CONFIG_DIR}/Mediastreamer2Config.cmake")
else()
find_package(Mediastreamer2)
endif()
if(NOT MEDIASTREAMER2_FOUND)
message(WARNING "Could not find the mediastreamer2 libraries!")
......@@ -74,7 +78,7 @@ if(ENABLE_MSPLUGIN)
add_subdirectory(msbcg729)
endif()
if(ENABLE_TESTS)
add_subdirectory(test)
#add_subdirectory(test)
endif()
......
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