]> git.sesse.net Git - casparcg/blob - modules/html/CMakeLists.txt
* Merged html producer and updated to latest CEF version (does not have satisfactory...
[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 include_directories(${ASMLIB_INCLUDE_PATH})
27
28 set_target_properties(html PROPERTIES FOLDER modules)
29 source_group(sources\\producer producer/*)
30 source_group(sources ./*)
31
32 if(MSVC)
33         target_link_libraries(html
34                 common
35                 core
36
37                 libcef.lib
38                 libcef_dll_wrapper.lib
39         )
40 endif()
41
42 casparcg_add_include_statement("modules/html/html.h")
43 casparcg_add_init_statement("html::init" "html")
44 casparcg_add_uninit_statement("html::uninit")
45 casparcg_add_command_line_arg_interceptor("html::intercept_command_line")
46 casparcg_add_module_project("html")
47
48 casparcg_add_runtime_dependency("${CEF_RESOURCES_PATH}/locales")
49 casparcg_add_runtime_dependency("${CEF_RESOURCES_PATH}/cef.pak")
50 casparcg_add_runtime_dependency("${CEF_RESOURCES_PATH}/cef_100_percent.pak")
51 casparcg_add_runtime_dependency("${CEF_RESOURCES_PATH}/cef_200_percent.pak")
52 casparcg_add_runtime_dependency("${CEF_RESOURCES_PATH}/devtools_resources.pak")
53 casparcg_add_runtime_dependency("${CEF_RESOURCES_PATH}/icudtl.dat")
54
55 if(MSVC)
56         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libcef.dll")
57         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/d3dcompiler_43.dll")
58         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/d3dcompiler_47.dll")
59         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/ffmpegsumo.dll")
60         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libEGL.dll")
61         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libGLESv2.dll")
62         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/natives_blob.bin")
63         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/snapshot_blob.bin")
64 endif()