-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
57 lines (41 loc) · 1.25 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
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
message(STATUS "Starting with CMake version ${CMAKE_VERSION}")
project(EL LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(EL_VERSION_MAJOR 0)
set(EL_VERSION_MINOR 1)
set_property(GLOBAL PROPERTY USE_FOLDERS TRUE)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH})
include(ELDetectCompilerInformation)
el_detect_compiler_information()
include(toolcfg/${EL_TOOLCONFIG})
include (TestBigEndian)
TEST_BIG_ENDIAN(IS_BIG_ENDIAN)
if(IS_BIG_ENDIAN)
set(EL_IS_BIG_ENDIAN true CACHE BOOL "")
else()
set(EL_IS_LITTLE_ENDIAN true CACHE BOOL "")
endif()
configure_file (
"${PROJECT_SOURCE_DIR}/runtime/ELConfig.h.in"
"${PROJECT_BINARY_DIR}/runtime/ELConfig.h"
)
include(ExternalOMR)
include_directories(${OMR_INCLUDE_DIRS})
include_directories(
"${PROJECT_BINARY_DIR}/runtime"
"${PROJECT_SOURCE_DIR}/runtime"
"${PROJECT_SOURCE_DIR}/bytecodes"
"${PROJECT_SOURCE_DIR}/parser"
"${PROJECT_SOURCE_DIR}/helpers"
)
add_subdirectory(helpers)
add_subdirectory(parser)
add_subdirectory(bytecodes)
add_subdirectory(runtime)
add_subdirectory(bytecodecompiler)