You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
* reuse-managed license/copyright headers reuse is a tool for compliance with the REUSE recommendations. See <https://reuse.software/> for more information, and <https://reuse.readthedocs.io/> for the online documentation. * Set jsoncpp license * Add MIT license for Decklink sources * Explicitly license examples/ - Add headers to source files - Change blanket licensing in .reuse/dep5 to only cover binary media - Import CC-BY-3.0 license and assign to sintel_trailer
46 lines
1.1 KiB
CMake
46 lines
1.1 KiB
CMake
# © OpenShot Studios, LLC
|
|
#
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH ON)
|
|
find_package(PkgConfig)
|
|
pkg_check_modules(PC_LIBZMQ QUIET libzmq)
|
|
|
|
set(ZeroMQ_VERSION ${PC_LIBZMQ_VERSION})
|
|
|
|
find_path(ZeroMQ_INCLUDE_DIR zmq.h
|
|
PATHS
|
|
${ZeroMQ_DIR}/include
|
|
${PC_LIBZMQ_INCLUDE_DIRS})
|
|
|
|
find_library(ZeroMQ_LIBRARY
|
|
NAMES zmq
|
|
PATHS
|
|
${ZeroMQ_DIR}/lib
|
|
${PC_LIBZMQ_LIBDIR}
|
|
${PC_LIBZMQ_LIBRARY_DIRS})
|
|
|
|
if(ZeroMQ_LIBRARY)
|
|
set(ZeroMQ_FOUND ON)
|
|
endif()
|
|
|
|
set ( ZeroMQ_LIBRARIES ${ZeroMQ_LIBRARY} )
|
|
set ( ZeroMQ_INCLUDE_DIRS ${ZeroMQ_INCLUDE_DIR} )
|
|
|
|
if(NOT TARGET libzmq)
|
|
add_library(libzmq UNKNOWN IMPORTED)
|
|
set_target_properties(libzmq PROPERTIES
|
|
IMPORTED_LOCATION ${ZeroMQ_LIBRARIES}
|
|
INTERFACE_INCLUDE_DIRECTORIES ${ZeroMQ_INCLUDE_DIRS})
|
|
endif()
|
|
|
|
include ( FindPackageHandleStandardArgs )
|
|
# handle the QUIETLY and REQUIRED arguments and set ZMQ_FOUND to TRUE
|
|
# if all listed variables are TRUE
|
|
find_package_handle_standard_args(ZeroMQ
|
|
REQUIRED_VARS
|
|
ZeroMQ_LIBRARIES
|
|
ZeroMQ_INCLUDE_DIRS
|
|
VERSION_VAR
|
|
ZeroMQ_VERSION)
|