-
Notifications
You must be signed in to change notification settings - Fork 361
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (22 loc) · 881 Bytes
/
CMakeLists.txt
File metadata and controls
27 lines (22 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
add_library(mltopenfx MODULE
factory.c
mlt_openfx.c mlt_openfx.h
filter_openfx.c
)
add_custom_target(Other_openfx_Files SOURCES
filter_openfx.yml
)
if(GPL AND TARGET PkgConfig::glib)
include(GenerateExportHeader)
generate_export_header(mltopenfx)
target_compile_options(mltopenfx PRIVATE ${MLT_COMPILE_OPTIONS})
target_include_directories(mltopenfx PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(mltopenfx PRIVATE mlt PkgConfig::glib ${CMAKE_DL_LIBS})
target_include_directories(mltopenfx PRIVATE openfx/include)
if(NOT MSVC)
target_link_libraries(mltopenfx PRIVATE m)
endif()
endif()
set_target_properties(mltopenfx PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${MLT_MODULE_OUTPUT_DIRECTORY}")
install(TARGETS mltopenfx LIBRARY DESTINATION ${MLT_INSTALL_MODULE_DIR})
install(FILES filter_openfx.yml DESTINATION ${MLT_INSTALL_DATA_DIR}/openfx)