CTKAppLauncher 0.1.4
Use CTKAppLauncher_VERSION in CPack configuration file

* Specifying the complete version will allow to define a custom version
string.
Add ctkVersionSource

* Adapted from CMake/Utilites/CMakeVersionSource.cmake, this script
will attempt to extract the current SHA1 associated with the source tree.

* It will defined the variable CTKAppLauncher_VERSION_SOURCE

* If the repository contains modified files, "-dirty" prefix will be appended
to CTKAppLauncher_VERSION_SOURCE.
Update main CMakeLists by adding VERSION_IS_RELEASE and VERSION_RC option. See #5

* If VERSION_IS_RELEASE is set to 0:
   - suffix "-<SHA1>(-dirty)" will be appended to CTKAppLauncher_VERSION

* If VERSION_IS_RELEASE is set to 1:
   - If VERSION_RC is NOT defined:
       - no prefix will be appended CTKAppLauncher_VERSION. It will look
like X.Y.Z.
   - If VERSION_RC is defined to an integer:
       - "-rc<VERSION_RC>" will be appended to CTKAppLauncher_VERSION
Merge branch '5-improve-versioning-process'

* 5-improve-versioning-process:
  Update main CMakeLists by adding VERSION_IS_RELEASE and VERSION_RC option. See #5
  Add ctkVersionSource
  Use CTKAppLauncher_VERSION in CPack configuration file
Improve readability by changing CMake command to lower case.

From Hans Johnson:
"The primary reason for changing key words is that all documentation for CMakeLists.txt now shows the key words as lower case.
Even the printed “Mastering CMake v5” uses lower case."

The following script allows to automatically update all files:


#!/bin/sh

for file in $(find . -type f -name '*\.cmake' -o -name '*\.txt' -o -name '*\.ctest')
do
  echo "Processing file [$file]"
  for cmd in $(cmake --help-command-list)
  do
    sed -i "s/${cmd}(/${cmd}(/gI" $file
  done
done
Add text checking that launcher return the exit code of the launched program
Merge branch 'test-return-process-exit-code'

* test-return-process-exit-code:
  Add text checking that launcher return the exit code of the launched program
Improve readability of CMakeLists by removing extra code

* Remove commented code

* Simplify logic
Merge branch 'clean-cmakelists'

* clean-cmakelists:
  Improve readability of CMakeLists by removing extra code
Arguments considered by the launcher can be set

* ctkAppLauncherTest1 has been converted to used the QtTest framework

* Added setArguments/arguments method
To prevent merge problem, clean end of line white spaces in ctkAppLauncher
Arguments specific to Qt are not "eaten" anymore. See #2

* Added convenience classes "ctkChar2DArray" and "ctkAppArguments"

* "ctkAppArguments" is full unit tested
Merge branch '2-pass-qt-reserved-option'. Close #2

* 2-pass-qt-reserved-option:
  Arguments specific to Qt are not "eaten" anymore. See #2
  To prevent merge problem, clean end of line white spaces in ctkAppLauncher
  Arguments considered by the launcher can be set
Avoid mistakes by considering usual warning flags with GNUCXX compiler
Merge branch 'gcc-with-warnings'

* gcc-with-warnings:
  Avoid mistakes by considering usual warning flags with GNUCXX compiler
Add option to dump environment variables to console. See #4

Signed-off-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
Add test to make sure --launcher-dump-environment works as expected. See #4
Merge branch '4-launcher-dump-environment'. Closes #4

* 4-launcher-dump-environment:
  Add test to make sure --launcher-dump-environment works as expected. See #4
  Add option to dump environment variables to console. See #4
"Library path" and "path" are merged on windows.

* Fix test exercising --launcher-dump-environment

* Tested on dashboard District9: VS2008/32bits/Release