summaryrefslogtreecommitdiff
path: root/lib/AsmJit/CMakeLists.txt
diff options
context:
space:
mode:
authorTim Besard <tim.besard@gmail.com>2011-11-02 14:57:47 +0100
committerTim Besard <tim.besard@gmail.com>2011-11-02 14:57:47 +0100
commit017f97abaf748a23314f4f52d45da454fd48591a (patch)
treeedbd1f040539f0d99d275d12452bd2747d7f2e36 /lib/AsmJit/CMakeLists.txt
parentfa1c64acd5e0ad7bc9e549da09cf5be3c794b435 (diff)
Switching to AsmJit generated chasing routines.
Diffstat (limited to 'lib/AsmJit/CMakeLists.txt')
-rw-r--r--lib/AsmJit/CMakeLists.txt61
1 files changed, 61 insertions, 0 deletions
diff --git a/lib/AsmJit/CMakeLists.txt b/lib/AsmJit/CMakeLists.txt
new file mode 100644
index 0000000..2056cdf
--- /dev/null
+++ b/lib/AsmJit/CMakeLists.txt
@@ -0,0 +1,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})
+