| 1 |
2 |
jamieiles |
# Copyright Jamie Iles, 2017
|
| 2 |
|
|
#
|
| 3 |
|
|
# This file is part of s80x86.
|
| 4 |
|
|
#
|
| 5 |
|
|
# s80x86 is free software: you can redistribute it and/or modify
|
| 6 |
|
|
# it under the terms of the GNU General Public License as published by
|
| 7 |
|
|
# the Free Software Foundation, either version 3 of the License, or
|
| 8 |
|
|
# (at your option) any later version.
|
| 9 |
|
|
#
|
| 10 |
|
|
# s80x86 is distributed in the hope that it will be useful,
|
| 11 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 12 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 13 |
|
|
# GNU General Public License for more details.
|
| 14 |
|
|
#
|
| 15 |
|
|
# You should have received a copy of the GNU General Public License
|
| 16 |
|
|
# along with s80x86. If not, see .
|
| 17 |
|
|
|
| 18 |
|
|
include(Verilator)
|
| 19 |
|
|
|
| 20 |
|
|
find_package(PythonLibs REQUIRED)
|
| 21 |
|
|
include_directories(${PYTHON_INCLUDE_DIRS})
|
| 22 |
|
|
find_package(Boost COMPONENTS python REQUIRED)
|
| 23 |
|
|
include_directories(${Boost_INCLUDE_DIR})
|
| 24 |
|
|
include_directories(../../sim/cppmodel)
|
| 25 |
|
|
include_directories(../../sim/RTLCPU)
|
| 26 |
|
|
include_directories(../../sim/common)
|
| 27 |
|
|
include_directories(../../tests/rtl)
|
| 28 |
|
|
include_directories(../../tests/jtag)
|
| 29 |
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../../tests/rtl)
|
| 30 |
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../../rtl)
|
| 31 |
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../../sim/RTLCPU)
|
| 32 |
|
|
|
| 33 |
|
|
add_library(Cpu SHARED
|
| 34 |
|
|
Cpu.cpp)
|
| 35 |
|
|
set_target_properties(Cpu PROPERTIES PREFIX "")
|
| 36 |
|
|
target_link_libraries(Cpu 8086sim rtlsim JTAGCPU ${Boost_LIBRARIES})
|
| 37 |
|
|
|
| 38 |
|
|
file(COPY __init__.py
|
| 39 |
|
|
DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|