Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit e8477eb4 authored by Vincent Pinon's avatar Vincent Pinon

Fix compile

parent 19b52d02
......@@ -117,7 +117,6 @@ if(NOT RELEASE_BUILD AND EXISTS ${CMAKE_SOURCE_DIR}/.git)
endif()
endif()
# may need to build "rttr_project" first?
include(rttr.CMakeLists.txt)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
......
include(ExternalProject)
ExternalProject_Add(rttr_project
PREFIX rttr
URL https://github.com/rttrorg/rttr/archive/v0.9.6.tar.gz
UPDATE_COMMAND ""
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DBUILD_EXAMPLES=OFF -DBUILD_DOCUMENTATION=OFF -DBUILD_UNIT_TESTS=OFF -DBUILD_PACKAGE=OFF -DBUILD_STATIC=ON
......@@ -8,6 +9,9 @@ ExternalProject_Get_Property(rttr_project install_dir)
add_library(rttr_core STATIC IMPORTED)
add_dependencies(rttr_core rttr_project)
file(MAKE_DIRECTORY "${install_dir}/include")
file(MAKE_DIRECTORY "${install_dir}/lib")
#file(TOUCH "${install_dir}/lib/librttr_core.a")
execute_process(COMMAND touch "${install_dir}/lib/librttr_core.a")
set_target_properties(rttr_core PROPERTIES
IMPORTED_LOCATION "${install_dir}/lib/librttr_core.a"
INTERFACE_INCLUDE_DIRECTORIES "${install_dir}/include")
......@@ -59,6 +59,7 @@ add_library(kdenliveLib STATIC ${kdenlive_SRCS} ${kdenlive_UIS} ${kdenlive_MOC})
qt5_add_resources(kdenlive_extra_SRCS icons.qrc ui/resources.qrc uiresources.qrc)
add_executable(kdenlive main.cpp ${kdenlive_extra_SRCS})
target_include_directories(kdenlive PRIVATE ${CMAKE_BINARY_DIR})
target_link_libraries(kdenlive kdenliveLib)
install(TARGETS kdenlive DESTINATION ${BIN_INSTALL_DIR})
......@@ -127,6 +128,7 @@ target_link_libraries(kdenliveLib
${CMAKE_THREAD_LIBS_INIT}
kiss_fft
rttr_core)
add_dependencies(kdenliveLib rttr_project)
if(BUILD_COVERAGE)
target_link_libraries(kdenliveLib gcov)
......
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