-
jcfr authored
1) In Applications/SlicerApp/CMakeLists.txt: Improve comment explaining what should be considered when adding an other application into Applications folder. Given the fact Slicer_APPLICATION_NAME is used locally, minimize confusion by renaming variable renaming it into SlicerApp_APPLICATION_NAME. In case the application being configured is the *Main* application, explicitly compare "PROJECT_NAME" with "Slicer_MAIN_PROJECT". 2) Rename variable Slicer_APPLICATION_NAME used to identified the main application into Slicer_MAIN_PROJECT_APPLICATION_NAME. This will minimize confusion and help maintaining the code. 3) Let's note that the mechanism used to fixup application should probably be extended to account for other application build in the Applications folder. 4) In top-level CMakeLists, move code specific to main application description into its own section. 5) Configure variable "Slicer_MAIN_PROJECT" and "Slicer_MAIN_PROJECT_APPLICATION_NAME" into SlicerConfig so that "SlicerExtensionCPackBundleFixup" could successfully refer to Slicer_MAIN_PROJECT_APPLICATION_NAME. This closes #2130 See http://www.na-mic.org/Bug/view.php?id=2130 git-svn-id: http://svn.slicer.org/Slicer4/trunk@20272 3bd1e089-480b-0410-8dfb-8563597acbee
abdde218