I have a bit of Cmake code that I can not seem to figure out how to get to
actually run during cpack. HEre is the code:
GET_FILENAME_COMPONENT (SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
configure_file("${SELF_DIR}/Deploy_ITK_Libs.sh.in"
"${DREAM3DProj_BINARY_DIR}/Deploy_ITK_Libs.sh" @ONLY
IMMEDIATE)
FILE(WRITE "${DREAM3DProj_BINARY_DIR}/Deploy_ITK_Libs.cmake"
"execute_process(COMMAND \"/bin/bash
${DREAM3DProj_BINARY_DIR}/Deploy_ITK_Libs.sh \${CMAKE_INSTALL_PREFIX}\")" )
FILE(APPEND "${DREAM3DProj_BINARY_DIR}/Deploy_ITK_Libs.cmake"
"\n\nMESSAGE(STATUS \"@@@@@@@@@@@@@@@@@ THIS IS DONE @@@@@@@@@@@\")\n")
INSTALL(CODE "execute_process(COMMAND \"/bin/bash
${DREAM3DProj_BINARY_DIR}/Deploy_ITK_Libs.sh \${CMAKE_INSTALL_PREFIX}\")"
COMPONENT Applications)
install(SCRIPT "${DREAM3DProj_BINARY_DIR}/Deploy_ITK_Libs.cmake"
COMPONENT Applications)
After I build I run "cpack" from the command line. I see _other_ scripts
that I have configured run but not _this_ script. I have verified that the
cmake code is actually executing as I get a new script file each time I run
cmake. I am sure I am missing something simple at this point but I just can
not see it.
This is on Linux Mint 17.x with CMake 3.1.0.
Thanks for any help
_________________________________________________________
Mike Jackson [email protected]
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
--
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