PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/copy_win_scripts/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 35 lines | 22 code | 7 blank | 6 comment | 1 complexity | 2ec0e0731e92b5cc06dae4cccaa05e45 MD5 | raw file
 1# -*- cmake -*-
 2
 3# The copy_win_scripts folder contains scripts handy for launching the 
 4# from the windows command line on windows.
 5# The cmake target created copies the scripts to the 
 6# build directory being used, which where the scripts 
 7# need to be executed from.
 8
 9include(CMakeCopyIfDifferent)
10
11set(win_scripts-src ${CMAKE_SOURCE_DIR}/copy_win_scripts)
12set(win_scripts-dst ${CMAKE_BINARY_DIR}/batch)
13
14set(file-list
15    llstart.py 
16    start-client.py 
17    start-servers.py 
18    stop-servers.py
19    user_config.py
20    )
21
22foreach(file ${file-list})
23    if(EXISTS ${win_scripts-src}/${file})    
24        set(win_scripts-files ${win_scripts-files} ${file})
25    endif(EXISTS ${win_scripts-src}/${file})
26endforeach(file ${file-list})
27
28copy_if_different(
29    ${win_scripts-src} 
30    ${win_scripts-dst} 
31    win_scripts-targets 
32    ${win_scripts-files} 
33    )
34
35add_custom_target(copy_win_scripts ALL DEPENDS ${win_scripts-targets})