OpenCores
URL https://opencores.org/ocsvn/s80186/s80186/trunk

Subversion Repositories s80186

[/] [s80186/] [trunk/] [sim/] [CMakeLists.txt] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
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
set(BIOS_PLATFORM "sim")
19
add_definitions(-DSERIAL_STDIO)
20
add_subdirectory(../bios ${CMAKE_CURRENT_BINARY_DIR}/bios)
21
 
22
include(Verilator)
23
include(Nasm)
24
 
25
find_package(Boost COMPONENTS program_options serialization REQUIRED)
26
find_package(SDL2 REQUIRED)
27
include_directories(${SDL2_INCLUDE_DIR})
28
include_directories(${Boost_INCLUDE_DIR})
29
 
30
add_subdirectory(common)
31
add_subdirectory(cppmodel)
32
add_subdirectory(RTLCPU)
33
add_subdirectory(display)
34
include_directories(cppmodel
35
                    display
36
                    common
37
                    RTLCPU
38
                    ../tests/rtl)
39
include_directories(${CMAKE_CURRENT_BINARY_DIR}/RTLCPU)
40
 
41
add_executable(simulator
42
               Simulator.cpp
43
               CGA.h
44
               Keyboard.h
45
               UART.h
46
               UART.cpp
47
               SPI.h
48
               SPI.cpp)
49
target_link_libraries(simulator
50
                      simcommon
51
                      simdisplay
52
                      8086sim
53
                      rtlsim
54
                      ${Boost_LIBRARIES})
55
install(TARGETS simulator
56
        COMPONENT simulator
57
        RUNTIME DESTINATION bin
58
        LIBRARY DESTINATION lib
59
        RESOURCE DESTINATION share/s80x86)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.