Re: [CMake] CPack/NSIS multiple component intall location

2013-04-23 Thread Romuald Delmont
Hi I finally manage this by building 2 components: Data (obviously for Data) and Unspecified for everything else. Tell CPACK to not include Data component, using SET(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_BINARY_DIR};${CMAKE_PROJECT_NAME};Unspecified;/") And finally package Data component manuall

Re: [CMake] CPack/NSIS multiple component intall location

2013-04-23 Thread Eric Noulard
2013/4/23 Romuald Delmont : > Hi Erik > > This is a simplified view of my project: > > Root CMakeList: > > PROJECT (Foo) > > FOREACH( mysubdirs > Apps > Data > ) > > SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Foo") > SET(CPACK_NSIS_COMPONENT_INSTALL ON) > include(CPACK) > > > Apps CMakeList: > > set(

Re: [CMake] CPack/NSIS multiple component intall location

2013-04-23 Thread Romuald Delmont
Hi Erik This is a simplified view of my project: Root CMakeList: PROJECT (Foo) FOREACH( mysubdirs Apps Data ) SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Foo") SET(CPACK_NSIS_COMPONENT_INSTALL ON) include(CPACK) Apps CMakeList: set(TARGET_NAME Apps) # Build some stuff ... install(TARGETS App

Re: [CMake] CPack/NSIS multiple component intall location

2013-04-23 Thread Eric Noulard
2013/4/23 Romuald Delmont : > Hi All > > I'm packaging an application with CMake/Cpack/NSIS and it's going pretty > well except for one point. > > I have a core component with executables and a data component. Both are > built by CMake and have an INSTALL command. > Install target gives me 2 direct

[CMake] CPack/NSIS multiple component intall location

2013-04-23 Thread Romuald Delmont
Hi All I'm packaging an application with CMake/Cpack/NSIS and it's going pretty well except for one point. I have a core component with executables and a data component. Both are built by CMake and have an INSTALL command. Install target gives me 2 directories (Apps and Data) in the CMAKE_INSTALL