]> git.sesse.net Git - casparcg/blob - common/CMakeLists.txt
5a8677f58e31f5acaec6d1268619764767dd6522
[casparcg] / common / CMakeLists.txt
1 cmake_minimum_required (VERSION 2.6)
2 project (common)
3
4 set(SOURCES
5                 diagnostics/graph.cpp
6
7                 gl/gl_check.cpp
8
9                 base64.cpp
10                 env.cpp
11                 log.cpp
12                 polling_filesystem_monitor.cpp
13                 stdafx.cpp
14                 tweener.cpp
15                 utf.cpp
16 )
17 if (MSVC)
18         set(OS_SPECIFIC_SOURCES
19                         compiler/vs/disable_silly_warnings.h
20                         compiler/vs/stack_walker.cpp
21                         compiler/vs/stack_walker.h
22
23                         os/windows/current_version.h
24                         os/windows/page_locked_allocator.cpp
25                         os/windows/prec_timer.cpp
26                         os/windows/stack_trace.cpp
27                         os/windows/system_info.cpp
28                         os/windows/win32_exception.cpp
29                         os/windows/win32_exception.h
30                         os/windows/windows.h
31         )
32 elseif (CMAKE_COMPILER_IS_GNUCXX)
33         set(OS_SPECIFIC_SOURCES
34                         os/linux/signal_handlers.cpp
35                         os/linux/stack_trace.cpp
36                         os/linux/system_info.cpp
37         )
38 endif ()
39 set(HEADERS
40                 diagnostics/graph.h
41
42                 gl/gl_check.h
43
44                 os/general_protection_fault.h
45                 os/page_locked_allocator.h
46                 os/stack_trace.h
47                 os/system_info.h
48
49                 array.h
50                 assert.h
51                 base64.h
52                 blocking_bounded_queue_adapter.h
53                 blocking_priority_queue.h
54                 cache_aligned_vector.h
55                 endian.h
56                 enum_class.h
57                 env.h
58                 except.h
59                 executor.h
60                 filesystem_monitor.h
61                 forward.h
62                 future.h
63                 future_fwd.h
64                 linq.h
65                 lock.h
66                 log.h
67                 memory.h
68                 memshfl.h
69                 param.h
70                 polling_filesystem_monitor.h
71                 prec_timer.h
72                 reactive.h
73                 semaphore.h
74                 stdafx.h
75                 tweener.h
76                 utf.h
77 )
78
79 add_library(common ${SOURCES} ${HEADERS} ${OS_SPECIFIC_SOURCES})
80 add_precompiled_header(common stdafx.h FORCEINCLUDE)
81
82 include_directories(..)
83 include_directories(${BOOST_INCLUDE_PATH})
84 include_directories(${RXCPP_INCLUDE_PATH})
85 include_directories(${TBB_INCLUDE_PATH})
86 include_directories(${GLEW_INCLUDE_PATH})
87
88 source_group(sources ./*)
89 source_group(sources\\gl gl/*)
90 source_group(sources\\diagnostics diagnostics/*)
91 source_group(sources\\compiler\\vs compiler/vs/*)
92