CompleteBundle.cmake 500 B

1234567891011121314151617181920212223
  1. if(APPLE)
  2. set(SCRIPT CompleteBundleOSX)
  3. elseif(WIN32)
  4. set(SCRIPT CompleteBundleWin)
  5. endif(APPLE)
  6. option(CODE_SIGN "code sign the app" OFF)
  7. if(CODE_SIGN)
  8. set(DO_SIGN 1)
  9. else(CODE_SIGN)
  10. set(DO_SIGN 0)
  11. endif(CODE_SIGN)
  12. if(ENABLE_ANGLE_DEP)
  13. set(DO_ENABLE_ANGLE_DEP 1)
  14. else()
  15. set(DO_ENABLE_ANGLE_DEP 0)
  16. endif()
  17. if(SCRIPT)
  18. configure_file(${CMAKE_SOURCE_DIR}/CMakeModules/${SCRIPT}.cmake.in ${SCRIPT}.cmake @ONLY)
  19. install(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/${SCRIPT}.cmake)
  20. endif(SCRIPT)