PageRenderTime 48ms CodeModel.GetById 23ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. # The copy_win_scripts folder contains scripts handy for launching the
  3. # from the windows command line on windows.
  4. # The cmake target created copies the scripts to the
  5. # build directory being used, which where the scripts
  6. # need to be executed from.
  7. include(CMakeCopyIfDifferent)
  8. set(win_scripts-src ${CMAKE_SOURCE_DIR}/copy_win_scripts)
  9. set(win_scripts-dst ${CMAKE_BINARY_DIR}/batch)
  10. set(file-list
  11. llstart.py
  12. start-client.py
  13. start-servers.py
  14. stop-servers.py
  15. user_config.py
  16. )
  17. foreach(file ${file-list})
  18. if(EXISTS ${win_scripts-src}/${file})
  19. set(win_scripts-files ${win_scripts-files} ${file})
  20. endif(EXISTS ${win_scripts-src}/${file})
  21. endforeach(file ${file-list})
  22. copy_if_different(
  23. ${win_scripts-src}
  24. ${win_scripts-dst}
  25. win_scripts-targets
  26. ${win_scripts-files}
  27. )
  28. add_custom_target(copy_win_scripts ALL DEPENDS ${win_scripts-targets})