blob: 2056cdf6914308cee7c25ff418220f13f8750c26 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Reguire minimum version of CMake
CMake_Minimum_Required(VERSION 2.6)
# AsmJit C++ sources
Set(ASMJIT_SOURCES
Assembler.cpp
AssemblerX86X64.cpp
CodeGenerator.cpp
Compiler.cpp
CompilerX86X64.cpp
CpuInfo.cpp
Defs.cpp
DefsX86X64.cpp
Logger.cpp
MemoryManager.cpp
Operand.cpp
OperandX86X64.cpp
Platform.cpp
Util.cpp
)
# AsmJit C++ headers
Set(ASMJIT_HEADERS
ApiBegin.h
ApiEnd.h
AsmJit.h
Assembler.h
AssemblerX86X64.h
Build.h
CodeGenerator.h
Compiler.h
CompilerX86X64.h
Config.h
CpuInfo.h
Defs.h
DefsX86X64.h
Logger.h
MemoryManager.h
Operand.h
OperandX86X64.h
Platform.h
Util.h
Util_p.h
)
# pthread library is needed for non-windows OSes.
If(NOT WIN32)
Link_Libraries(pthread)
EndIf(NOT WIN32)
# Build-Type.
If(${CMAKE_BUILD_TYPE})
If(${CMAKE_BUILD_TYPE} MATCHES "Debug")
Add_Definitions(-DASMJIT_DEBUG)
Else()
Add_Definitions(-DASMJIT_NO_DEBUG)
EndIf()
EndIf()
Add_Library(AsmJit SHARED ${ASMJIT_SOURCES} ${ASMJIT_HEADERS})
|