Created
May 18, 2023 10:21
-
-
Save JF002/f79a5514bca5da5c80686e6ad29fda85 to your computer and use it in GitHub Desktop.
How to build and run InfiniSim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For this example, I'm working in /home/jf/git/test/ | |
# [1] Clone InfiniTime | |
$ git clone https://github.com/InfiniTimeOrg/InfiniTime.git | |
$ git submodule update --init --recursive | |
$ cd .. | |
# [2] Clone InfiniSim | |
$ git clone --recursive https://github.com/InfiniTimeOrg/InfiniSim.git | |
$ git submodule update --init --recursive | |
$ cd InfiniSim | |
# [3] Build InfiniSim | |
## [OPTION 1] Build InfiniTime inside InfiniSim | |
$ cmake -S . -B build | |
$ cmake --build build -j4 | |
## RUN IT | |
$ ./build/infinisim | |
## [OPTION 2] Build InfiniTime from an external directory | |
## !!! Replace /home/jf/git/test/InfiniTime by the folder where you checked out InfiniTime | |
$ cmake -DInfiniTime_DIR=/home/jf/git/test/InfiniTime -S . -B build | |
$ cmake --build build -j4 | |
## RUN IT | |
$ ./build/infinisim | |
# [3] When you do some changes in InfiniTime / InfiniSim: | |
## Run the next command if you changed something in CMake files: | |
$ cmake -DInfiniTime_DIR=/home/jf/git/test/InfiniTime -S . -B build | |
## And always run the next command | |
$ cmake --build build -j4 | |
## Then run again | |
$ ./build/infinisim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment