blob: ab38816bea5a58d3d366a9b76c2fd5546a1cc567 (
plain)
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
|
set(SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../mach-override-src")
if(NOT EXISTS "${SRC_DIR}/README.markdown")
message(FATAL_ERROR
"\"${SRC_DIR}/README.markdown\" was not found.\n"
"Please checkout the submodule:\n"
"git submodule update --init --recursive"
)
endif()
add_library(mach-override STATIC)
target_include_directories(mach-override PUBLIC SYSTEM ${SRC_DIR})
target_sources(mach-override
PUBLIC
"${SRC_DIR}/mach_override.h"
PRIVATE
"${SRC_DIR}/mach_override.c"
"${SRC_DIR}/udis86.h"
"${SRC_DIR}/libudis86/decode.c"
"${SRC_DIR}/libudis86/decode.h"
"${SRC_DIR}/libudis86/extern.h"
"${SRC_DIR}/libudis86/input.c"
"${SRC_DIR}/libudis86/input.h"
"${SRC_DIR}/libudis86/itab.c"
"${SRC_DIR}/libudis86/itab.h"
"${SRC_DIR}/libudis86/syn.c"
"${SRC_DIR}/libudis86/syn-att.c"
"${SRC_DIR}/libudis86/syn-intel.c"
"${SRC_DIR}/libudis86/syn.h"
"${SRC_DIR}/libudis86/types.h"
"${SRC_DIR}/libudis86/udint.h"
"${SRC_DIR}/libudis86/udis86.c"
)
target_disable_warnings(mach-override)
|