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
81 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(${Boost_INCLUDE_DIRS})
99 include_directories(${RXCPP_INCLUDE_DIRS})
100 include_directories(${TBB_INCLUDE_DIRS})
101 include_directories(${GLEW_INCLUDE_DIRS})
103 source_group(sources ./*)
104 source_group(sources\\gl gl/*)
105 source_group(sources\\diagnostics diagnostics/*)
106 source_group(sources\\compiler\\vs compiler/vs/*)
107 source_group(sources\\os\\windows os/windows/*)
108 source_group(sources\\os os/*)
110 target_link_libraries(common
111 "${ASMLIB_LIBRARIES}"
114 "${OPENGL_gl_LIBRARY}"
115 "${FREETYPE_LIBRARIES}"
121 target_link_libraries(common
129 target_link_libraries(common
140 if(NOT USE_SYSTEM_TBB)
142 casparcg_add_runtime_dependency("${GLEW_BIN_DIR}/glew32.dll")
143 casparcg_add_runtime_dependency("${TBB_BIN_DIR}/tbb.dll")
144 casparcg_add_runtime_dependency("${TBB_BIN_DIR}/tbb_debug.dll")
146 # Reenable when tbb gets official support for vc14
147 # casparcg_add_runtime_dependency("${TBB_BIN_DIR}/tbbmalloc.dll")
148 # casparcg_add_runtime_dependency("${TBB_BIN_DIR}/tbbmalloc_debug.dll")
149 # casparcg_add_runtime_dependency("${TBB_BIN_DIR}/tbbmalloc_proxy.dll")
150 # casparcg_add_runtime_dependency("${TBB_BIN_DIR}/tbbmalloc_proxy_debug.dll")
152 casparcg_add_runtime_dependency("${GLEW_BIN_DIR}/libGLEW.so.1.12")
153 casparcg_add_runtime_dependency("${TBB_BIN_DIR}/libtbb.so.2")