Swiftgram/cmake/lottie-playerConfig.cmake.in
subhransu mohanty 333d888a42 lottie: add cmake config file so that library can be found with find_package()
Change-Id: I4e1c29f79a1a24636808079762cc88501fe2389b
2018-07-31 10:20:46 +09:00

17 lines
600 B
CMake

get_filename_component(lottie-player_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
include(CMakeFindDependencyMacro)
list(APPEND CMAKE_MODULE_PATH ${lottie-player_CMAKE_DIR})
# NOTE Had to use find_package because find_dependency does not support COMPONENTS or MODULE until 3.8.0
#find_dependency(RapidJSON 1.0 REQUIRED MODULE)
#find_package(Boost 1.55 REQUIRED COMPONENTS regex)
list(REMOVE_AT CMAKE_MODULE_PATH -1)
if(NOT TARGET lottie-player::lottie-player)
include("${lottie-player_CMAKE_DIR}/lottie-playerTargets.cmake")
endif()
set(lottie-player_LIBRARIES lottie-player::lottie-player)