I want to build a module against Nightly Slicer at Release mode.
When I build the sln at VS I would expect to get generated the files at :
moduleName_build\lib\Slicer-4.11\cli-modules\Release
path, but they are generated under :
Slicer-build\lib\Slicer-4.11\cli-modules\Release
Can you explain me how can I change that path?
Thanks
The build location for module .dll and .exe files is correct - Slicer-build\lib\Slicer-4.11\cli-modules\Release. Do not attempt to change this path, as the build system relies on finding files in this location.
Ok, but why other modules, such as SlicerIGT, could be able to generate those files at
Modules\SlicerIGT_build\lib\Slicer-4.11\qt-loadable-modules\Release ?
@siaeleni and I just ran into this again generating a new cli. I think adding the OUTPUT_DIRECTORY lines to the CLI template makes sense, but we should also add the corresponding lines to the Loadable module template too. This should also include the python directory and any others?
I do not recommend specifying output directories directly as parameter of SEMMacroBuildCLI, when building a CLI extensions, reasonable default are already expected to be set.
To address this, I suggest we update the following: