Hello,
I'm trying to create a tree of components like this:
- plugins
| - a
| - b
Where the user can select plugins to select all children or manually
select a, b.
I can get the selection of that component tree but unable to mark them
selected by default using CPackIFW. This is my current CMakeLists.txt:
cmake_minimum_required(VERSION 3.2)
project(test)
set(CPACK_PACKAGE_NAME Hello)
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hello world using IFW")
set(CPACK_PACKAGE_VERSION "1.0.0")
set(CPACK_GENERATOR "IFW")
set(PLUGINS one two)
foreach (plugin ${PLUGINS})
install(
FILES ${plugin}.js
COMPONENT plugin_${plugin}
DESTINATION plugins
)
list(APPEND CPACK_COMPONENTS_ALL plugin_${plugin})
endforeach ()
include(CPack)
include(CPackIFW)
cpack_add_component_group(plugins)
foreach (plugin ${PLUGINS})
cpack_add_component_group(
plugin_group_${plugin}
PARENT_GROUP plugins
DISPLAY_NAME "${plugin}"
DESCRIPTION "Install ${plugin}.js"
)
cpack_add_component(plugin_${plugin} GROUP plugin_group_${plugin})
endforeach ()
The CMakeLists.txt just expect to have one.js and two.js in the
top-level directory. Can you please tell me what I'm doing wrong?
Regards,
--
David Demelier
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake