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
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(
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
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
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