[CMake] Multiple Installers in one project

David Cole david.cole at kitware.com
Wed Apr 4 13:46:48 EDT 2012


No. It's easy to build a single installer that contains multiple components.

On Wed, Apr 4, 2012 at 1:22 PM,  <norulez at me.com> wrote:
> And if I don't use libs/dll's twice and use components? Is it that easier to build installers per component?
>
> Am 04.04.2012 um 19:15 schrieb David Cole <david.cole at kitware.com>:
>
>> The answer to the question "is this possible?" is almost nearly always
>> "yes, of course."
>>
>> But in this case, it may be more work than you'd like. It should be
>> quite possible to use BundleUtilities on 3 separate apps in 3 separate
>> install tree sub-directories. Then creating separate installers for
>> them might be quite a challenge with CPack. A single installer, or a
>> component-aware installer is quite easy. Three separate ones usually
>> come from three separate projects.
>>
>> It begins to sound as though it might be easier to deal with your
>> three exes if they were in 3 separate projects...
>>
>> Nothing that I'm aware of will help you make what you want to do
>> "quick+easy". It shouldn't be hard or difficult really, but if you
>> want to keep your current structure, then writing scripts to do the
>> installing and packaging is do-able, although likely more
>> time-consuming than you're hoping for.
>>
>>
>> HTH,
>> David
>>
>>
>> On Wed, Apr 4, 2012 at 12:55 PM,  <norulez at me.com> wrote:
>>> Hello,
>>>
>>> I want to create multiple installers within a project.
>>>
>>> So, for example if the following files are created:
>>> Bin1.exe
>>> Bin2.exe
>>> Bin3.exe
>>> Lib1.dll
>>> Lib2.dll
>>> Lib3.dll
>>>
>>> Now I would like to have 3 Installers:
>>> 1.) contains:
>>> Bin1.exe
>>> Lib1.dll
>>> Lib2.dll
>>>
>>> 2.) contains:
>>> Bin2.exe
>>> Lib2.dll
>>> Lib3.dll
>>>
>>> 3.) contains:
>>> Bin3.exe
>>> Lib1.dll
>>> Lib2.dll
>>> Lib3.dll
>>>
>>> I have each binary/library in the install command as followed:
>>> INSTALL(TARGET Bin1 RUNTIME DESTINATION .)
>>>
>>> After that I also want to run BundleUtilities for each binary/library to get the dependencies.
>>>
>>> Is this possible?
>>>
>>> Thanks in advance
>>>
>>> Best Regards
>>> NoRulez
>>> --
>>>
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list