Re: [CMake] custom NSIS installer
On Tue, May 7, 2013 at 4:22 AM, David Golub golu...@gmail.com wrote: Just put your NSIS.template.in in the root of your source tree along with CMakeLists.txt. CMake will detect your file and use it instead of the one in the CMake installation. ** ** David Golub I would like to thank you all for the valuable information. Thanks, Lloyd -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] custom NSIS installer
On 5/7/2013 8:20 AM, Lloyd wrote: On Tue, May 7, 2013 at 4:22 AM, David Golub golu...@gmail.com mailto:golu...@gmail.com wrote: Just put your NSIS.template.in http://NSIS.template.in in the root of your source tree along with CMakeLists.txt. CMake will detect your file and use it instead of the one in the CMake installation. __ __ David Golub I would like to thank you all for the valuable information. put the file in a dir called CMake in your source tree, then do this: (your_project is the name you gave your project in the project command) set(CMAKE_MODULE_PATH ${your_project_SOURCE_DIR}/CMake) Thanks, Lloyd -- Bill Hoffman Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065 bill.hoff...@kitware.com http://www.kitware.com 518 881-4905 (Direct) 518 371-3971 x105 Fax (518) 371-4573 -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] custom NSIS installer
I have read this - http://www.cmake.org/Wiki/CMake:CPackNSISAdvancedTips - wiki article about executing custom nsis script. It states that... To start work on a custom NSIS script, simply create a file (or copy) into your module path (e.g. CPACK_MODULE_PATH) called NSIS.template.in. Checking the cmake documentation, there is no predefined variable named CPACK_MODULE_PATH. I could find a NSIS.template.in. in the cmake's (main cmake install directory) modules directory. I believe cmake would not ask me to modify this file, as each project's nsis template requirement would be different. could you please let me know the correct location where I should create the template file? Thanks, Lloyd -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] custom NSIS installer
It states that... To start work on a custom NSIS script, simply create a file (or copy) into your module path (e.g. CPACK_MODULE_PATH) called NSIS.template.in. Checking the cmake documentation, there is no predefined variable named CPACK_MODULE_PATH. I could find a NSIS.template.in. in the cmake's (main cmake install directory) modules directory. I believe cmake would not ask me to modify this file, as each project's nsis template requirement would be different. could you please let me know the correct location where I should create the template file? Thanks, Lloyd Use List append to append your local module path to the CMAKE_MODULE_PATH then put your custom NSIS.template.in in that folder LIST(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake/Modules) So in my project root I have the following folder: CMake\Modules and it contains my customized NSIS.template.in John -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] custom NSIS installer
2013/5/6 Lloyd lloydkl.t...@gmail.com: I have read this - http://www.cmake.org/Wiki/CMake:CPackNSISAdvancedTips - wiki article about executing custom nsis script. It states that... To start work on a custom NSIS script, simply create a file (or copy) into your module path (e.g. CPACK_MODULE_PATH) called NSIS.template.in. Checking the cmake documentation, there is no predefined variable named CPACK_MODULE_PATH. Yes there is a variable with this name defined in CPack.cmake and used by CPack executable...but it is not documented :-( (this may be worth a bug report/feature request) basically if CPACK_MODULE_PATH is not defined by the user then cpack does; set(CPACK_MODULE_PATH ${CMAKE_MODULE_PATH}) then CPack uses CPACK_MODULE_PATH. I could find a NSIS.template.in. in the cmake's (main cmake install directory) modules directory. I believe cmake would not ask me to modify this file, as each project's nsis template requirement would be different. If the template fits your needs you do not need to do anything beside defining the appropriate value for CPACK_NSIS_xxx variable in your CMakeLists.txt. If you need more then following what's writtent there http://www.cmake.org/Wiki/CMake:CPackNSISAdvancedTips seems OK to me. could you please let me know the correct location where I should create the template file? In your project source tree then modify CPACK_MODULE_PATH or CMAKE_MODULE_PATH in order to make CPack find yours before the one provided by CMake. -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] custom NSIS installer
Just put your NSIS.template.in in the root of your source tree along with CMakeLists.txt. CMake will detect your file and use it instead of the one in the CMake installation. David Golub From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Lloyd Sent: Monday, May 06, 2013 8:35 AM To: CMake ML Subject: [CMake] custom NSIS installer I have read this - http://www.cmake.org/Wiki/CMake:CPackNSISAdvancedTips - wiki article about executing custom nsis script. It states that... To start work on a custom NSIS script, simply create a file (or copy) into your module path (e.g. CPACK_MODULE_PATH) called NSIS.template.in. Checking the cmake documentation, there is no predefined variable named CPACK_MODULE_PATH. I could find a NSIS.template.in. in the cmake's (main cmake install directory) modules directory. I believe cmake would not ask me to modify this file, as each project's nsis template requirement would be different. could you please let me know the correct location where I should create the template file? Thanks, Lloyd -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake