1 cmake_minimum_required (VERSION 2.6)
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
52 os/general_protection_fault.h
53 os/page_locked_allocator.h
61 blocking_bounded_queue_adapter.h
62 blocking_priority_queue.h
63 cache_aligned_vector.h
82 polling_filesystem_monitor.h
94 add_library(common ${SOURCES} ${HEADERS} ${OS_SPECIFIC_SOURCES})
95 add_precompiled_header(common stdafx.h FORCEINCLUDE)
97 include_directories(..)
98 include_directories(${ASMLIB_INCLUDE_PATH})
99 include_directories(${BOOST_INCLUDE_PATH})
100 include_directories(${RXCPP_INCLUDE_PATH})
101 include_directories(${TBB_INCLUDE_PATH})
102 include_directories(${GLEW_INCLUDE_PATH})
104 source_group(sources ./*)
105 source_group(sources\\gl gl/*)
106 source_group(sources\\diagnostics diagnostics/*)
107 source_group(sources\\compiler\\vs compiler/vs/*)
108 source_group(sources\\os\\windows os/windows/*)
109 source_group(sources\\os os/*)
112 target_link_libraries(common
116 optimized sfml-system-2.lib
117 optimized sfml-window-2.lib
118 optimized sfml-graphics-2.lib
119 debug sfml-system-d-2.lib
120 debug sfml-window-d-2.lib
121 debug sfml-graphics-d-2.lib
132 target_link_libraries(common
133 "${DEPENDENCIES_FOLDER}/asmlib/alibelf64.a"
161 casparcg_add_runtime_dependency("${GLEW_BIN_PATH}/glew32.dll")
162 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbb.dll")
163 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbb_debug.dll")
165 # Reenable when tbb gets official support for vc14
166 # casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbbmalloc.dll")
167 # casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbbmalloc_debug.dll")
168 # casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbbmalloc_proxy.dll")
169 # casparcg_add_runtime_dependency("${TBB_BIN_PATH}/tbbmalloc_proxy_debug.dll")
171 casparcg_add_runtime_dependency("${GLEW_BIN_PATH}/libGLEW.so.1.12")
172 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/libtbb.so.2")
173 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/libtbbmalloc_proxy.so.2")
174 casparcg_add_runtime_dependency("${TBB_BIN_PATH}/libtbbmalloc.so.2")