cmake_minimum_required(VERSION 3.2 FATAL_ERROR)

list(APPEND CMAKE_MODULE_PATH
	${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules
	${CMAKE_CURRENT_SOURCE_DIR}/external/omr/cmake/modules
)

project(ab-vm)

include(Utilities)

enable_testing()

set(CMAKE_CXX_STANDARD 11)

set(CMAKE_EXPORT_COMPILE_COMMANDS true)

exec_program(
	"git"
	${CMAKE_CURRENT_SOURCE_DIR}
	ARGS "describe" "--all" "--long" "HEAD"
	OUTPUT_VARIABLE GIT_COMMIT
)

add_subdirectory(ab)
add_subdirectory(external)
add_subdirectory(om)
add_subdirectory(pith)

cmake_minimum_required(VERSION 3.2 FATAL_ERROR)

list(APPEND CMAKE_MODULE_PATH
	${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules
	${CMAKE_CURRENT_SOURCE_DIR}/external/omr/cmake/modules
)

# Global configuration

project(ab-vm)

include(Utilities)

enable_testing()

set(CMAKE_CXX_STANDARD 11)

set(CMAKE_EXPORT_COMPILE_COMMANDS true)

exec_program(
	"git"
	${CMAKE_CURRENT_SOURCE_DIR}
	ARGS "describe" "--all" "--long" "HEAD"
	OUTPUT_VARIABLE GIT_COMMIT
)

# OMR Configuration

set(OMR_GLUE       "${CMAKE_CURRENT_SOURCE_DIR}/glue/" CACHE PATH FORCE)
set(OMR_FVTEST     OFF CACHE BOOL "Disable OMR Testing in Ab" FORCE)
set(OMR_GC         ON  CACHE BOOL "Enable OMR GC in Ab, for Om" FORCE)
set(OMR_JITBUILDER OFF CACHE BOOL "Enable OMR Jitbuilder, for Ab" FORCE)

# Sub directories

add_subdirectory(ab)
add_subdirectory(external)
add_subdirectory(om)
add_subdirectory(pith)

Write some basic OMR configuration
Write some basic OMR configuration

Signed-off-by: Robert Young <42c59959a3f4413d6a1b4d7b4f99db457d199e49@gmail.com>
