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