]> git.sesse.net Git - casparcg/blob - modules/html/CMakeLists.txt
642606f53ce5f0ae94b8f0205bd46b08508ae9b4
[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 else()
41         target_link_libraries(html
42                 common
43                 core
44
45                 cef
46                 cef_dll_wrapper
47         )
48 endif()
49
50 casparcg_add_include_statement("modules/html/html.h")
51 casparcg_add_init_statement("html::init" "html")
52 casparcg_add_uninit_statement("html::uninit")
53 casparcg_add_command_line_arg_interceptor("html::intercept_command_line")
54 casparcg_add_module_project("html")
55
56 casparcg_add_runtime_dependency("${CEF_BIN_PATH}/locales")
57 casparcg_add_runtime_dependency("${CEF_BIN_PATH}/cef.pak")
58 casparcg_add_runtime_dependency("${CEF_BIN_PATH}/devtools_resources.pak")
59
60 if(MSVC)
61         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libcef.dll")
62         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libcef.dll.pdb")
63         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/d3dcompiler_43.dll")
64         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/d3dcompiler_46.dll")
65         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/ffmpegsumo.dll")
66         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/icudt.dll")
67         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libEGL.dll")
68         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libGLESv2.dll")
69 else()
70         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libcef.so")
71         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libffmpegsumo.so")
72         casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libudev.so.0")
73 endif()