1 cmake_minimum_required (VERSION 2.6)
6 diagnostics/graph_to_log_sink.cpp
14 polling_filesystem_monitor.cpp
21 set(OS_SPECIFIC_SOURCES
22 compiler/vs/disable_silly_warnings.h
23 compiler/vs/StackWalker.cpp
24 compiler/vs/StackWalker.h
26 os/windows/filesystem.cpp
27 os/windows/page_locked_allocator.cpp
28 os/windows/prec_timer.cpp
29 os/windows/threading.cpp
30 os/windows/stack_trace.cpp
31 os/windows/system_info.cpp
32 os/windows/win32_exception.cpp
33 os/windows/win32_exception.h
36 elseif (CMAKE_COMPILER_IS_GNUCXX)
37 set(OS_SPECIFIC_SOURCES
38 os/linux/filesystem.cpp
39 os/linux/prec_timer.cpp
40 os/linux/signal_handlers.cpp
41 os/linux/threading.cpp
42 os/linux/stack_trace.cpp
43 os/linux/system_info.cpp
48 diagnostics/graph_to_log_sink.h
53 os/general_protection_fault.h
54 os/page_locked_allocator.h
62 blocking_bounded_queue_adapter.h
63 blocking_priority_queue.h
64 cache_aligned_vector.h
81 polling_filesystem_monitor.h
92 add_library(common ${SOURCES} ${HEADERS} ${OS_SPECIFIC_SOURCES})
93 add_precompiled_header(common stdafx.h FORCEINCLUDE)
95 include_directories(..)
96 include_directories(${BOOST_INCLUDE_PATH})
97 include_directories(${RXCPP_INCLUDE_PATH})
98 include_directories(${TBB_INCLUDE_PATH})
99 include_directories(${GLEW_INCLUDE_PATH})
101 source_group(sources ./*)
102 source_group(sources\\gl gl/*)
103 source_group(sources\\diagnostics diagnostics/*)
104 source_group(sources\\compiler\\vs compiler/vs/*)
105 source_group(sources\\os\\windows os/windows/*)
106 source_group(sources\\os os/*)
109 target_link_libraries(common
113 optimized sfml-system-2.lib
114 optimized sfml-window-2.lib
115 optimized sfml-graphics-2.lib
116 debug sfml-system-d-2.lib
117 debug sfml-window-d-2.lib
118 debug sfml-graphics-d-2.lib
129 target_link_libraries(common
130 "${DEPENDENCIES_FOLDER}/asmlib/alibelf64.a"
158 casparcg_add_runtime_dependency("${GLEW_BIN_PATH}/glew32.dll")
159 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbb.dll")
160 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbb_debug.dll")
162 # Reenable when tbb gets official support for vc14
163 # casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbbmalloc.dll")
164 # casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbbmalloc_debug.dll")
165 # casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbbmalloc_proxy.dll")
166 # casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbbmalloc_proxy_debug.dll")
168 casparcg_add_runtime_dependency("${GLEW_BIN_PATH}/libGLEW.so.1.12")
169 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/libtbb.so.2")
170 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/libtbbmalloc_proxy.so.2")
171 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/libtbbmalloc.so.2")