diff --git a/CMakeLists.txt b/CMakeLists.txt index 37c27fd..3434e5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,11 +6,8 @@ include(cmake/CPM.cmake) # Provide default CXX settings include(cmake/defaults.cmake) -set(SUBDIRS third_party scripts) - -foreach(DIR ${SUBDIRS}) - add_subdirectory(${DIR}) -endforeach() +add_subdirectory(third_party) +add_subdirectory(scripts) set(hSIM_LIB src/memory.cc src/machine.cc @@ -30,3 +27,4 @@ add_executable(${PROJECT_NAME} src/main.cc) target_compile_options(${PROJECT_NAME} PRIVATE -Wpedantic) target_link_libraries(${PROJECT_NAME} PRIVATE hSim-lib CLI11::CLI11 fmt::fmt) +set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME hsim) diff --git a/README.md b/README.md index 366eb66..9f18c6f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # hSim -Hi there. We introduce high perfomance CPU simulator model. +Hi there. We introduce high performance CPU simulator model. ## How to build ### Requirements @@ -17,7 +17,5 @@ cmake --build --parallel Ninja is optional, but it looks really pretty After build, you can run our simulator and get some help info ```bash -./build/hSim --help +./build/hsim --help ``` - - diff --git a/src/main.cc b/src/main.cc index db72754..a246ab1 100644 --- a/src/main.cc +++ b/src/main.cc @@ -7,7 +7,7 @@ #include "machine.hh" int main(int argc, char **argv) try { - CLI::App app("hSim: high Perfomance CPU Simulator"); + CLI::App app("hSim: high Performance CPU Simulator"); hsim::Config config{}; app.add_option("--elf", config.elf_path, "Path to ELF file")