-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
126 lines (90 loc) · 2.72 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
cmake_minimum_required(VERSION 3.22)
project(meshLoader C)
include_directories ( include )
set(CMAKE_C_STANDARD 11)
if (WIN32)
else()
set (
MESH_LOADER_REQUIRED_LIBRARIES
pthread
)
endif()
set (
MESH_LOADER_IMPLEMENTATION_POSIX_SOURCES
src/implementation/posix/posixMutex.c
src/implementation/posix/posixMutex.h
src/implementation/posix/posixThread.c
src/implementation/posix/posixThread.h
)
set (
MESH_LOADER_IMPLEMENTATION_WIN32_SOURCES
src/implementation/win32/win32Mutex.c
src/implementation/win32/win32Mutex.h
src/implementation/win32/win32Thread.c
src/implementation/win32/win32Thread.h
)
set (
MESH_LOADER_IMPLEMENTATION_WORKERS_SOURCES
src/implementation/workers/specializedWorker.c
src/implementation/workers/specializedWorker.h
src/implementation/workers/objWorker.c
src/implementation/workers/objWorker.h
)
set (
MESH_LOADER_IMPLEMENTATION_SOURCES
${MESH_LOADER_IMPLEMENTATION_POSIX_SOURCES}
${MESH_LOADER_IMPLEMENTATION_WIN32_SOURCES}
${MESH_LOADER_IMPLEMENTATION_WORKERS_SOURCES}
src/implementation/instance.h
src/implementation/instance.c
src/implementation/internalAllocation.h
src/implementation/internalAllocation.c
src/implementation/utility.c
src/implementation/privateUtility.h
src/implementation/privateTypes.h
src/implementation/mesh.c
src/implementation/mesh.h
src/implementation/mutex.h
src/implementation/thread.h
src/implementation/job.c
src/implementation/job.h
src/implementation/jobMemoryAllocator.c
src/implementation/jobMemoryAllocator.h
src/implementation/jobDispatcher.c
src/implementation/jobDispatcher.h
src/implementation/jobWorker.c
src/implementation/jobWorker.h
src/implementation/jobPriorityQueue.c
src/implementation/jobPriorityQueue.h
src/implementation/string.c
src/implementation/string.h
)
set (
MESH_LOADER_CONFIG_SOURCES
src/config/instanceCnf.h
)
set (
MESH_LOADER_INTERFACE_SOURCES
src/interface/publicTypes.h
src/interface/meshLoader.h
src/interface/utility.h
)
set (
MESH_LOADER_SOURCES
${MESH_LOADER_IMPLEMENTATION_SOURCES}
${MESH_LOADER_INTERFACE_SOURCES}
${MESH_LOADER_CONFIG_SOURCES}
)
add_executable (
mesh_loader_basic_test
src/tests/baseTest.c
)
target_link_libraries (
mesh_loader_basic_test
${MESH_LOADER_REQUIRED_LIBRARIES}
meshloader
)
add_library (
meshloader
${MESH_LOADER_SOURCES}
)