NJU-ProjectN / nvboard

NJU Virtual Board
Other
198 stars 38 forks source link

change the tool chain to cmake #8

Closed suzakuwcx closed 2 years ago

suzakuwcx commented 2 years ago

This is a small purpose, and current status is demo, don't merge

for common linux package,for example X11,google test, qt ,their manager tool has all migrate into cmake now verilator also provide cmake interface by add this line in CMakeLists.txt

find_package(verilator HINTS $ENV{VERILATOR_ROOT})

Moreover , it seem that makefile has become a little messy and hard to expand now , can I change the build chain into cmake? This also have shortcoming that work process would be changed , and need us to learn a new build tool

POSIX

suzakuwcx commented 2 years ago

The build step of this demo(These step can be packaged by package manager like dpkg, yum or pacman etc)

mkdir build
cd build
cmake ..
make 
make install
sashimi-yzh commented 2 years ago

Someone has already given similar advice about cmake before. But we decide not to use cmake. See https://github.com/NJU-ProjectN/ics-pa-gitbook/issues/8

suzakuwcx commented 2 years ago

Understand, cmake is indeed more abstraction