rogersce / cnpy

library to read/write .npy and .npz files in C/C++
MIT License
1.34k stars 301 forks source link

Adding target options to cnpy-static to be linked against as a subdirectory module #50

Open paulfd opened 5 years ago

paulfd commented 5 years ago

Hi,

I added a couple lines in the CMakeFiles.txt to be able to build against the static library. It works when the library is built using add_subdirectory and should not impact existing targets.