45 lines
1.5 KiB
CMake
45 lines
1.5 KiB
CMake
include_guard(GLOBAL)
|
|
block()
|
|
set(libdatachannel_option ${base_options})
|
|
list(APPEND libdatachannel_option
|
|
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
|
-DUSE_GNUTLS=OFF
|
|
-DUSE_NICE=OFF
|
|
-DUSE_NATPMP=OFF
|
|
-DUSE_CLI=OFF
|
|
-DBUILD_SHARED_LIBS=OFF
|
|
-DNO_EXAMPLES=ON
|
|
-DNO_TESTS=ON
|
|
-DLIBDATACHANNEL_STATIC=ON
|
|
)
|
|
_register_git_cmake_library(aethera_kernel::libdatachannel
|
|
"https://github.com/paullouisageneau/libdatachannel.git"
|
|
"v0.22.2"
|
|
)
|
|
rcl_get_effective_install_dir(
|
|
aethera_kernel::libdatachannel
|
|
LIBDATACHANNEL_ROOT
|
|
)
|
|
set(libdatachannel_DIR
|
|
"${LIBDATACHANNEL_ROOT}/lib/cmake/libdatachannel"
|
|
)
|
|
rcl_cmake_library_set_cmake_options(
|
|
aethera_kernel::libdatachannel
|
|
${libdatachannel_option}
|
|
)
|
|
rcl_cmake_library_set_other_use_opt(
|
|
aethera_kernel::libdatachannel
|
|
"-Dlibdatachannel_DIR=\"${libdatachannel_DIR}\""
|
|
)
|
|
rcl_cmake_library_set_init_script(
|
|
aethera_kernel::libdatachannel
|
|
"set(LIBDATACHANNEL_ROOT \"${LIBDATACHANNEL_ROOT}\")"
|
|
"set(libdatachannel_DIR \"${libdatachannel_DIR}\")"
|
|
)
|
|
rcl_cmake_library_set_clear_script(
|
|
aethera_kernel::libdatachannel
|
|
"unset(LIBDATACHANNEL_ROOT)"
|
|
"unset(libdatachannel_DIR)"
|
|
)
|
|
rcl_export_configuration(aethera_kernel)
|
|
endblock() |