]> git.sesse.net Git - casparcg/blob - modules/html/CMakeLists.txt
[general] #598 Removed all usages of asmlib, because it is worse performing than...
[casparcg] / modules / html / CMakeLists.txt
1 cmake_minimum_required (VERSION 2.6)
2 project (html)
3
4 set(SOURCES
5                 producer/html_cg_proxy.cpp
6                 producer/html_producer.cpp
7
8                 html.cpp
9 )
10 set(HEADERS
11                 producer/html_cg_proxy.h
12                 producer/html_producer.h
13
14                 html.h
15 )
16
17 add_library(html ${SOURCES} ${HEADERS})
18
19 include_directories(..)
20 include_directories(../..)
21 include_directories(${BOOST_INCLUDE_PATH})
22 include_directories(${RXCPP_INCLUDE_PATH})
23 include_directories(${TBB_INCLUDE_PATH})
24 include_directories(${CEF_INCLUDE_PATH})
25 include_directories(${CEF_PATH})
26
27 set_target_properties(html PROPERTIES FOLDER modules)
28 source_group(sources\\producer producer/*)
29 source_group(sources ./*)
30
31 if(MSVC)
32         target_link_libraries(html
33                 common
34                 core
35
36                 optimized release/libcef
37                 optimized release/libcef_dll_wrapper
38                 debug debug/libcef
39                 debug debug/libcef_dll_wrapper
40         )
41 else()
42         target_link_libraries(html
43                 common
44                 core
45
46                 cef
47                 cef_dll_wrapper
48         )
49 endif()
50
51 casparcg_add_include_statement("modules/html/html.h")
52 casparcg_add_init_statement("html::init" "html")
53 casparcg_add_uninit_statement("html::uninit")
54 casparcg_add_command_line_arg_interceptor("html::intercept_command_line")
55 casparcg_add_module_project("html")
56
57 casparcg_add_runtime_dependency("${CEF_BIN_PATH}/locales")
58 casparcg_add_runtime_dependency("${CEF_BIN_PATH}/cef.pak")
59 casparcg_add_runtime_dependency("${CEF_BIN_PATH}/devtools_resources.pak")
60
61 if(MSVC)
62         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libcef.dll")
63         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libcef.dll.pdb")
64         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/d3dcompiler_43.dll")
65         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/d3dcompiler_46.dll")
66         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/ffmpegsumo.dll")
67         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/icudt.dll")
68         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libEGL.dll")
69         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libGLESv2.dll")
70 else()
71         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libcef.so")
72         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libffmpegsumo.so")
73         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libudev.so.0")
74 endif()