I'm trying to create a superbuild for my project, which require nifticlib library. I am able to automatically download and compile it, as well as import created libraries, however, I'm not sure how can I link it with another external project?
However, I imported my nifticlib as niftiio,nifticdf, and znz. How can I pass them to be linked with my ExternalProject MyProject?
Given that I pass the NIFTI_LIBRARY_DIR, do I just need to do a target_link_libraries(MyProject niftiio nifticdf znz) in my CMakeLists.txt of MyProject? Is it gonna find the proper library (as the name of the library is platform dependent)?