Warning, /multimedia/kdenlive/rttr.CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-License-Identifier: BSD-2-Clause 0002 # SPDX-FileCopyrightText: Vincent Pinon <vpinon@kde.org>, Nicolas Carion <french.ebook.lover@gmail.com> 0003 0004 0005 include(ExternalProject) 0006 ExternalProject_Add(rttr_project 0007 PREFIX rttr 0008 URL https://github.com/rttrorg/rttr/archive/v0.9.6.tar.gz 0009 UPDATE_COMMAND "" 0010 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_EXAMPLES=OFF -DBUILD_DOCUMENTATION=OFF -DBUILD_UNIT_TESTS=OFF -DBUILD_PACKAGE=OFF -DBUILD_STATIC=ON 0011 ) 0012 0013 ExternalProject_Get_Property(rttr_project install_dir) 0014 file(MAKE_DIRECTORY "${install_dir}/include") 0015 file(MAKE_DIRECTORY "${install_dir}/lib") 0016 # fails on Win: execute_process(COMMAND touch "${install_dir}/lib/librttr_core.a") 0017 # CMake >=3.12: file(TOUCH "${install_dir}/lib/librttr_core.a") 0018 if(NOT EXISTS "${install_dir}/lib/librttr_core.a") 0019 file(WRITE "${install_dir}/lib/librttr_core.a" "dummy file to be replaced by build") 0020 endif() 0021 0022 add_library(RTTR::Core_Lib STATIC IMPORTED) 0023 add_dependencies(RTTR::Core_Lib rttr_project) 0024 set_target_properties(RTTR::Core_Lib PROPERTIES 0025 IMPORTED_LOCATION "${install_dir}/lib/librttr_core.a" 0026 INTERFACE_INCLUDE_DIRECTORIES "${install_dir}/include")