IntelligentSoftwareSystems / Galois

Galois: C++ library for multi-core and multi-node parallelization
http://iss.ices.utexas.edu/?p=projects/galois
Other
310 stars 131 forks source link

How to add new code to Galois and modify the Makefile #396

Closed Steamgjk closed 2 years ago

Steamgjk commented 2 years ago

I am trying to add some new code into Galois. More specifcially, I create a class, which includes a .h and a .cpp file. I put the .h file under libdist/include/galois and put the .cpp file under libdist/include/src

图片

My question is: If I want to compile this class into the project and construct such objects in the applications (e.g. sssp_pull.cpp), which make/cmake files should I modify?( I checked the Makefile, and it seems very complex, I think it may be generated by automatic script, so I am wondering which files are the fundamental files to modify)

l-hoang commented 2 years ago

You should add the new cpp file to the CMakeLists under libdist.

Steamgjk commented 2 years ago
图片

Added here, and regenerate the makefile (i.e. clean the old makefiles and dep folders and then create new ones)