forked from mltframework/mlt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
50 lines (50 loc) · 1.26 KB
/
CMakeLists.txt
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
project(MLT)
set(MLT_VERSION 6.17.0)
cmake_minimum_required(VERSION 3.0)
find_package(PkgConfig REQUIRED)
include(GNUInstallDirs)
option(GPL "Enable GPLv2 modules" ON)
option(GPL3 "Enable GPLv3 modules" ON)
if(WIN32)
option(NODEPLOY "Keep bin/ lib/ layout on Windows" ON)
endif()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(AMD64)")
set(X86_64 ON)
add_compile_definitions(USE_MMX USE_SSE USE_SSE2 ARCH_X86_64)
endif()
if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
add_compile_options(-ffast-math)
elseif(MSVC)
add_compile_options(/fp:fast)
endif()
find_package(Threads REQUIRED)
add_subdirectory(src/framework)
add_subdirectory(src/melt)
add_subdirectory(src/mlt++)
#add_subdirectory(src/swig)
#file(GLOB modules src/modules/*/)
set(modules
src/modules/avformat
src/modules/core
src/modules/decklink
src/modules/frei0r
src/modules/feeds
src/modules/gtk2
src/modules/kdenlive
src/modules/motion_est
src/modules/normalize
src/modules/oldfilm
src/modules/opencv
src/modules/plus
src/modules/plusgpl
src/modules/qt
src/modules/rtaudio
src/modules/sdl2
src/modules/vid.stab
src/modules/vmfx
src/modules/xine
src/modules/xml
)
foreach(module ${modules})
add_subdirectory(${module})
endforeach()