Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ set(TARGET_NAME RISCV)
option(PROTEA_BUILD_TESTS
"Enable tests build (requires riscv gnu toolchain)" OFF)

option(PROTEA_BUILD_SIM
"Build the native simulator generator and simulator" ON)

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set_property(CACHE CMAKE_INSTALL_PREFIX
PROPERTY VALUE "${CMAKE_BINARY_DIR}/install")
Expand All @@ -21,14 +24,15 @@ include(cmake/Bundler.cmake)
include(cmake/QEMU.cmake)
include(cmake/CompilerOptions.cmake)
include(cmake/CPM.cmake)
include(cmake/dependencies.cmake)
include(cmake/CompilerConfig.cmake)

if(PROTEA_BUILD_TESTS)
enable_testing()
endif()

add_subdirectory(lib)
add_subdirectory(sim_lib)
add_subdirectory(sim_gen)
if(PROTEA_BUILD_SIM)
add_subdirectory(sim_lib)
add_subdirectory(sim_gen)
endif()
add_subdirectory(test)
23 changes: 0 additions & 23 deletions cmake/dependencies.cmake

This file was deleted.

24 changes: 24 additions & 0 deletions sim_gen/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
project(protea_simgen)

# elfio: ELF Loader Library
CPMAddPackage(
NAME elfio
GITHUB_REPOSITORY serge1/ELFIO
GIT_TAG Release_3.12
EXCLUDE_FROM_ALL True
SYSTEM True)

# CLI11: Command Line Input argument parser library
CPMAddPackage(
NAME CLI11
GITHUB_REPOSITORY CLIUtils/CLI11
VERSION 2.5.0
EXCLUDE_FROM_ALL True
SYSTEM True)

# fmt: Format Library
CPMAddPackage(
NAME fmt
GITHUB_REPOSITORY fmtlib/fmt
GIT_TAG 12.0.0
EXCLUDE_FROM_ALL True
SYSTEM True)

set(PROTEA_SIMGEN_OUTPUT_HEADERS
cpu_state.hh
base_exec_engine.hh
Expand Down
Loading