Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 28, 2009, 7:15:37 PM (15 years ago)
Author:
rgrieder
Message:

Added run scripts for client1, client2 and server.
They will be copied to the same locations as the original run scripts.
Furthermore specifying "—directory foobar" to the command line will put the config and log files in the subfolder foobar.
—> server goes to config/server, etc.
That should avoid conflicts when using the same logfile from multiple executables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem3/bin/CMakeLists.txt

    r2685 r2709  
    2121 #    Reto Grieder
    2222 #  Description:
    23  #    Creates a run-script in the root directory of the build tree.
     23 #    Creates run scripts in the root directory of the build tree and
     24 #    the runtime output directory.
    2425 #
    2526
    26 ############ Configure Dev Build ##############
    27 
    28 
    29 ################ Run Scripts ##################
    30 
    31 # Create a run script for Windows to manually add the DLL path when executing
     27# Create run scripts for Windows to manually add the DLL path when executing
    3228IF(WIN32)
    33   SET(RUN_SCRIPT run.bat)
     29  SET(RUN_SCRIPTS run.bat client1.bat client2.bat server.bat)
    3430ELSEIF(UNIX)
    35   SET(RUN_SCRIPT run)
     31  SET(RUN_SCRIPTS run client1 client1 server)
    3632ENDIF()
    3733
     
    5147  STRING(REPLACE "/" "\\" CURRENT_RUNTIME_DIR_WINDOWS ${CURRENT_RUNTIME_DIR})
    5248
    53   CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${RUN_SCRIPT}.in ${CURRENT_RUNTIME_DIR}/${RUN_SCRIPT} @ONLY)
    54   IF(_subdir STREQUAL _default_subdir)
    55     # Convenience script to be used when sitting in the binary directory. Defaults to Debug for msvc.
    56     CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${RUN_SCRIPT}.in ${CMAKE_BINARY_DIR}/${RUN_SCRIPT} @ONLY)
    57   ENDIF()
     49  FOREACH(_script ${RUN_SCRIPTS})
     50    CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${_script}.in ${CURRENT_RUNTIME_DIR}/${_script} @ONLY)
     51    IF(_subdir STREQUAL _default_subdir)
     52      # Convenience script to be used when sitting in the binary directory. Defaults to Debug for msvc.
     53      CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${_script}.in ${CMAKE_BINARY_DIR}/${_script} @ONLY)
     54    ENDIF()
     55  ENDFOREACH(_script)
    5856
    5957  # In order to evaluate at run time whether it is a dev build in the build tree,
Note: See TracChangeset for help on using the changeset viewer.