Closed robertodr closed 7 years ago
This will be very valuable - thanks a lot for doing this!
Don't know why Travis is dying on this... I will investigate and I should be done with it by today. I will add other stuff in another PR, since this has become too big already. I can confirm that I can now do make install
and then, in another CMakeLists.txt
do find_package(numgrid)
:smile_cat:
@bast this is ready for review
Thank you so much for the cleanup!
Description
numgrid installation is now discoverable via a
find_package
command in CMake. To test this out:make install
CMakeLists.txt
:project(dummy CXX)
find_package(numgrid REQUIRED) get_property(_loc TARGET numgrid::numgrid PROPERTY LOCATION) message("Location of numgrid: ${_loc}")
mkdir -p build cd build cmake .. -Dnumgrid_DIR=${prefix}/share/cmake/numgrid