I have a script that builds some package sort of files based on other sources...
Basically a simplified version... I would think since the output file of add_custom_command was referenced in a INSTALL that those targets should get build before INSTALL... but using MinGW Makefiles, 'make install' fails to generate either file.... ------ CMakeLists.txt ------------- cmake_minimum_required(VERSION 3.0) project( test ) add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/resources.kw COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_BINARY_DIR}/resources.kw ) INSTALL( FILES ${CMAKE_BINARY_DIR}/resources.kw DESTINATION bin ) add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/application.dat COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_BINARY_DIR}/application.dat ) INSTALL( FILES ${CMAKE_BINARY_DIR}/application.dat DESTINATION bin ) ------------ end CMakeLists.txt --------------
-- 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