1 cmake_minimum_required (VERSION 2.6)
13 polling_filesystem_monitor.cpp
20 set(OS_SPECIFIC_SOURCES
21 compiler/vs/disable_silly_warnings.h
22 compiler/vs/StackWalker.cpp
23 compiler/vs/StackWalker.h
25 os/windows/filesystem.cpp
26 os/windows/page_locked_allocator.cpp
27 os/windows/prec_timer.cpp
28 os/windows/threading.cpp
29 os/windows/stack_trace.cpp
30 os/windows/system_info.cpp
31 os/windows/win32_exception.cpp
32 os/windows/win32_exception.h
35 elseif (CMAKE_COMPILER_IS_GNUCXX)
36 set(OS_SPECIFIC_SOURCES
37 os/linux/filesystem.cpp
38 os/linux/prec_timer.cpp
39 os/linux/signal_handlers.cpp
40 os/linux/threading.cpp
41 os/linux/stack_trace.cpp
42 os/linux/system_info.cpp
51 os/general_protection_fault.h
52 os/page_locked_allocator.h
60 blocking_bounded_queue_adapter.h
61 blocking_priority_queue.h
62 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(${ASMLIB_INCLUDE_PATH})
97 include_directories(${BOOST_INCLUDE_PATH})
98 include_directories(${RXCPP_INCLUDE_PATH})
99 include_directories(${TBB_INCLUDE_PATH})
100 include_directories(${GLEW_INCLUDE_PATH})
102 source_group(sources ./*)
103 source_group(sources\\gl gl/*)
104 source_group(sources\\diagnostics diagnostics/*)
105 source_group(sources\\compiler\\vs compiler/vs/*)
106 source_group(sources\\os\\windows os/windows/*)
107 source_group(sources\\os os/*)
110 target_link_libraries(common
114 optimized sfml-system-2.lib
115 optimized sfml-window-2.lib
116 optimized sfml-graphics-2.lib
117 debug sfml-system-d-2.lib
118 debug sfml-window-d-2.lib
119 debug sfml-graphics-d-2.lib
130 target_link_libraries(common
131 "${DEPENDENCIES_FOLDER}/asmlib/alibelf64.a"
159 casparcg_add_runtime_dependency("${GLEW_BIN_PATH}/glew32.dll")
160 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbb.dll")
161 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbb_debug.dll")
163 # Reenable when tbb gets official support for vc14
164 # casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbbmalloc.dll")
165 # casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbbmalloc_debug.dll")
166 # casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbbmalloc_proxy.dll")
167 # casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbbmalloc_proxy_debug.dll")
169 casparcg_add_runtime_dependency("${GLEW_BIN_PATH}/libGLEW.so.1.12")
170 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/libtbb.so.2")
171 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/libtbbmalloc_proxy.so.2")
172 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/libtbbmalloc.so.2")