2015-10-14 00:02:02 +00:00
|
|
|
#
|
2020-03-09 06:18:30 +00:00
|
|
|
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
|
2015-10-14 00:02:02 +00:00
|
|
|
#
|
2020-03-09 06:18:30 +00:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
2015-10-14 00:02:02 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (isa-translator CXX)
|
|
|
|
|
|
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wall -Wextra -std=c++11")
|
|
|
|
|
|
|
|
if (NOT CMAKE_BUILD_TYPE)
|
|
|
|
set (CMAKE_BUILD_TYPE Release)
|
|
|
|
endif (NOT CMAKE_BUILD_TYPE)
|
|
|
|
|
|
|
|
add_executable(isa-translator translate.cpp
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/tables.hpp)
|
|
|
|
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/tables.hpp
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/make_tables.py --output ${CMAKE_CURRENT_BINARY_DIR}/tables.hpp
|
|
|
|
DEPENDS make_tables.py)
|