-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (24 loc) · 927 Bytes
/
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
cmake_minimum_required(VERSION 3.17)
project(compiler_vm)
set(CMAKE_CXX_STANDARD 20)
# CTest
enable_testing()
find_library(fmt ext/fmt)
# Includes.
set(PX_JVM_SRC_INCLUDE_DIR
${PROJECT_SOURCE_DIR}/src/vm/oops
${PROJECT_SOURCE_DIR}/src/vm/utilities
${PROJECT_SOURCE_DIR}/src/vm/interpreter
${PROJECT_SOURCE_DIR}/src/vm/adlc
${PROJECT_SOURCE_DIR}/src/vm/classfile
${PROJECT_SOURCE_DIR}/src/vm/memory
${PROJECT_SOURCE_DIR}/src/vm/runtime
)
set(PX_JVM_TEST_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/tests/include)
set(PX_JVM_THIRD_PARTY_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/ext/gtest/googletest ${PROJECT_SOURCE_DIR}/ext/fmt/include)
include_directories(${PX_JVM_SRC_INCLUDE_DIR} ${PX_JVM_TEST_INCLUDE_DIR} ${PX_JVM_THIRD_PARTY_INCLUDE_DIR})
# include_directories(BEFORE src) # This is needed for gtest.
add_subdirectory(ext/fmt)
add_subdirectory(ext/gtest)
add_subdirectory(src)
add_subdirectory(test)