Hi All, We
1. Create a folder in our project, called PackageDepends, see [1]. 2. In the past, some of these had generated path names to ensure that they are always correctly configured to the version we built during our superbuild, so we used CMake to copy them into a folder in the build tree, substituting the various variables, see [2]. But as I search through the current source code, this doesn’t appear necessary, but I leave it here, as an example that you can use them from either your source tree, or your build tree. Source tree is simpler obviously. 3. You then tell MITK to use this additional PackageDepends folder, see [3]. I think that’s about it. Hope that helps. Matt [1]: https://github.com/NifTK/NifTK/tree/master/CMake/PackageDepends [2]: https://github.com/NifTK/NifTK/blob/master/CMakeLists.txt#L1065 [3]: https://github.com/NifTK/NifTK/blob/master/CMakeLists.txt#L1610 From: "Dinkelacker, Stefan" <[email protected]> Date: Saturday, 29 December 2018 at 22:18 To: Federico Milano <[email protected]>, "[email protected]" <[email protected]> Subject: Re: [mitk-users] Adding a PACKAGE from outside MITK Hi Federico, the list elements in the DEPENDS section are just the target names of the external libraries so if your find_package script doesn't create targets you can still use CMake to create them (see imported targets in the CMake documentation). Best, Stefan ________________________________ Von: Federico Milano <[email protected]> Gesendet: Freitag, 28. Dezember 2018 20:05 An: [email protected] Betreff: [mitk-users] Adding a PACKAGE from outside MITK Hi. I'm using MITK as a library. I call from my main CMakeLists.txt the macros MITK_CREATE_MODULE and MITK_CREATE_EXECUTABLE to create new modules and executables for my application. Now I need to use dependencies from libraries that are not MITK external project. I could use them as "additional libraries" in MITK_CREATE_MODULE/MITK_CREATE_EXECUTABLE, but it would be nice to be able to add a new PACKAGE to the system, from outside the MITK superbuild process. I would like to know what are the steps to do this; in CMake I could find the library I want to add with find_package, but after this, how could I add it to the MITK PACKAGE system so it could be included in the DEPENDS of MITK_CREATE_MODULE/MITK_CREATE_EXECUTABLE? Thanks for your help Federico
_______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
