-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
88 lines (77 loc) · 2.1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
cmake_minimum_required(VERSION 2.6)
project( LibOVR )
if(APPLE)
file( GLOB PLATFORM_FILES
"Src/Kernel/OVR_ThreadsPthread.*"
"Src/OVR_OSX_*.*" )
elseif(MSVC)
file( GLOB PLATFORM_FILES
"Src/Kernel/OVR_ThreadsWinAPI.*"
"Src/OVR_Win32_*.*" )
else()
# Linux
file( GLOB PLATFORM_FILES
"Src/Kernel/OVR_ThreadsPthread.*"
"Src/OVR_Linux_*.*" )
endif()
add_definitions(-DUNICODE -D_UNICODE)
set( LIBOVR_INC_DIR
"${CMAKE_CURRENT_SOURCE_DIR}/Src"
"${CMAKE_CURRENT_SOURCE_DIR}/Include" )
include_directories( Include Src )
file( GLOB INTERFACE_HEADERS Include/*.h )
file( GLOB LIBOVR_FILES
"Src/Kernel/OVR_Alg.*"
"Src/Kernel/OVR_Allocator.*"
"Src/Kernel/OVR_Array.*"
"Src/Kernel/OVR_Atomic.*"
"Src/Kernel/OVR_Color.*"
"Src/Kernel/OVR_ContainerAllocator.*"
"Src/Kernel/OVR_File.*"
"Src/Kernel/OVR_FileFILE.*"
"Src/Kernel/OVR_Hash.*"
"Src/Kernel/OVR_KeyCodes.*"
"Src/Kernel/OVR_List.*"
"Src/Kernel/OVR_Log.*"
"Src/Kernel/OVR_Math.*"
"Src/Kernel/OVR_RefCount.*"
"Src/Kernel/OVR_Std.*"
"Src/Kernel/OVR_String.*"
"Src/Kernel/OVR_String_FormatUtil.*"
"Src/Kernel/OVR_String_PathUtil.*"
"Src/Kernel/OVR_StringHash.*"
"Src/Kernel/OVR_SysFile.*"
"Src/Kernel/OVR_System.*"
"Src/Kernel/OVR_Threads.*"
"Src/Kernel/OVR_Timer.*"
"Src/Kernel/OVR_Types.*"
"Src/Kernel/OVR_UTF8Util.*"
"Src/OVR_Device.*"
"Src/OVR_DeviceConstants.*"
"Src/OVR_DeviceHandle.*"
"Src/OVR_DeviceImpl.*"
"Src/OVR_DeviceMessages.*"
"Src/OVR_HIDDevice.*"
"Src/OVR_HIDDeviceBase.*"
"Src/OVR_HIDDeviceImpl.*"
"Src/OVR_LatencyTestImpl.*"
"Src/OVR_SensorFilter.*"
"Src/OVR_SensorFusion.*"
"Src/OVR_SensorImpl.*"
"Src/OVR_ThreadCommandQueue.*"
"Src/OVR_JSON.*"
"Src/OVR_Profile.*"
"Src/Util/Util_LatencyTest.*"
"Src/Util/Util_Render_Stereo.*" )
source_group( include FILES ${INTERFACE_HEADERS} )
source_group( src FILES ${LIBOVR_FILES} )
source_group( platform FILES ${PLATFORM_FILES} )
add_library( LibOVR STATIC
${LIBOVR_FILES}
${PLATFORM_FILES} )
if( NOT (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) )
set( LIBOVR_INC_DIR
"${CMAKE_CURRENT_SOURCE_DIR}/Include"
"${CMAKE_CURRENT_SOURCE_DIR}/Src"
PARENT_SCOPE )
endif()