summaryrefslogtreecommitdiff
path: root/src/pal/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2016-11-23 10:09:09 (GMT)
committerJiyoung Yun <jy910.yun@samsung.com>2016-11-23 10:09:09 (GMT)
commit4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch)
tree98110734c91668dfdbb126fcc0e15ddbd93738ca /src/pal/tests/CMakeLists.txt
parentfa45f57ed55137c75ac870356a1b8f76c84b229c (diff)
downloadcoreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'src/pal/tests/CMakeLists.txt')
-rw-r--r--src/pal/tests/CMakeLists.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/pal/tests/CMakeLists.txt b/src/pal/tests/CMakeLists.txt
new file mode 100644
index 0000000..a6d1ba4
--- /dev/null
+++ b/src/pal/tests/CMakeLists.txt
@@ -0,0 +1,32 @@
+cmake_minimum_required(VERSION 2.8.12.2)
+
+if(CLR_CMAKE_PLATFORM_ARCH_AMD64)
+ set(PAL_CMAKE_PLATFORM_ARCH_AMD64 1)
+elseif(CLR_CMAKE_PLATFORM_ARCH_ARM)
+ set(PAL_CMAKE_PLATFORM_ARCH_ARM 1)
+elseif(CLR_CMAKE_PLATFORM_ARCH_ARM64)
+ set(PAL_CMAKE_PLATFORM_ARCH_ARM64 1)
+endif()
+
+# Compile options
+add_definitions(-DPLATFORM_UNIX=1)
+add_definitions(-DLP64COMPATIBLE=1)
+add_definitions(-DFEATURE_PAL=1)
+add_definitions(-DCORECLR=1)
+add_definitions(-DPIC=1)
+if(PAL_CMAKE_PLATFORM_ARCH_AMD64)
+ add_definitions(-DBIT64=1)
+ add_definitions(-D_WIN64=1)
+elseif(PAL_CMAKE_PLATFORM_ARCH_ARM)
+ add_definitions(-DBIT32=1)
+elseif(PAL_CMAKE_PLATFORM_ARCH_ARM64)
+ add_definitions(-DBIT64=1)
+ add_definitions(-D_WIN64=1)
+else()
+ message(FATAL_ERROR "Only ARM, ARM64 and AMD64 is supported")
+endif()
+
+add_compile_options(-Wno-empty-body)
+
+add_subdirectory(palsuite)
+