Toolchain-QNX-6.5.0.cmake 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #
  2. # (C) Copyright 2009 Johns Hopkins University (JHU), All Rights
  3. # Reserved.
  4. #
  5. # --- begin cisst license - do not edit ---
  6. #
  7. # This software is provided "as is" under an open source license, with
  8. # no warranty. The complete license can be found in license.txt and
  9. # http://www.cisst.org/cisst/license.txt.
  10. #
  11. # --- end cisst license ---
  12. SET(CMAKE_SYSTEM_NAME QNX)
  13. SET(CMAKE_SYSTEM_VERSION 6.5.0)
  14. SET(CMAKE_SYSTEM_PROCESSOR x86)
  15. SET(TOOLCHAIN QNX)
  16. #SET(CMAKE_IMPORT_LIBRARY_SUFFIX ".a")
  17. SET(CMAKE_SHARED_LIBRARY_PREFIX "lib")
  18. SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
  19. SET(CMAKE_STATIC_LIBRARY_PREFIX "lib")
  20. SET(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
  21. IF(CMAKE_HOST_WIN32)
  22. SET(HOST_EXECUTABLE_SUFFIX ".exe")
  23. ENDIF(CMAKE_HOST_WIN32)
  24. FIND_PATH(QNX_HOST
  25. NAME usr/bin/qcc${HOST_EXECUTABLE_SUFFIX}
  26. PATHS $ENV{QNX_HOST} C:/QNX650/host/win32/
  27. NO_CMAKE_PATH
  28. NO_CMAKE_ENVIRONMENT_PATH
  29. )
  30. FIND_PATH(QNX_TARGET
  31. NAME usr/include/qnx_errno.h
  32. PATHS $ENV{QNX_TARGET} C:/QNX650/target/qnx6/
  33. NO_CMAKE_PATH
  34. NO_CMAKE_ENVIRONMENT_PATH
  35. )
  36. IF(CMAKE_HOST_WIN32)
  37. FIND_PATH(QNX_CONFIGURATION
  38. NAME bin/qnxactivate.exe
  39. PATHS $ENV{QNX_CONFIGURATION}
  40. "C:/Program Files/QNX Software Systems/qconfig"
  41. NO_CMAKE_PATH
  42. NO_CMAKE_ENVIRONMENT_PATH
  43. )
  44. ENDIF(CMAKE_HOST_WIN32)
  45. SET(ENV{QNX_HOST} ${QNX_HOST})
  46. SET(ENV{QNX_TARGET} ${QNX_TARGET})
  47. IF(CMAKE_HOST_WIN32)
  48. SET(ENV{QNX_CONFIGURATION} ${QNX_CONFIGURATION})
  49. SET(ENV{PATH} "$ENV{PATH};${QNX_HOST}/usr/bin")
  50. ENDIF(CMAKE_HOST_WIN32)
  51. SET(CMAKE_MAKE_PROGRAM "${QNX_HOST}/usr/bin/make${HOST_EXECUTABLE_SUFFIX}" CACHE PATH "QNX Make Program")
  52. SET(CMAKE_SH "${QNX_HOST}/usr/bin/sh${HOST_EXECUTABLE_SUFFIX}" CACHE PATH "QNX shell Program")
  53. SET(CMAKE_AR "${QNX_HOST}/usr/bin/nto${CMAKE_SYSTEM_PROCESSOR}-ar${HOST_EXECUTABLE_SUFFIX}" CACHE PATH "QNX ar Program")
  54. SET(CMAKE_RANLIB "${QNX_HOST}/usr/bin/nto${CMAKE_SYSTEM_PROCESSOR}-ranlib${HOST_EXECUTABLE_SUFFIX}" CACHE PATH "QNX ranlib Program")
  55. SET(CMAKE_NM "${QNX_HOST}/usr/bin/nto${CMAKE_SYSTEM_PROCESSOR}-nm${HOST_EXECUTABLE_SUFFIX}" CACHE PATH "QNX nm Program")
  56. SET(CMAKE_OBJCOPY "${QNX_HOST}/usr/bin/nto${CMAKE_SYSTEM_PROCESSOR}-objcopy${HOST_EXECUTABLE_SUFFIX}" CACHE PATH "QNX objcopy Program")
  57. SET(CMAKE_OBJDUMP "${QNX_HOST}/usr/bin/nto${CMAKE_SYSTEM_PROCESSOR}-objdump${HOST_EXECUTABLE_SUFFIX}" CACHE PATH "QNX objdump Program")
  58. SET(CMAKE_LINKER "${QNX_HOST}/usr/bin/nto${CMAKE_SYSTEM_PROCESSOR}-ld" CACHE PATH "QNX Linker Program")
  59. SET(CMAKE_STRIP "${QNX_HOST}/usr/bin/nto${CMAKE_SYSTEM_PROCESSOR}-strip${HOST_EXECUTABLE_SUFFIX}" CACHE PATH "QNX Strip Program")
  60. SET(CMAKE_C_COMPILER ${QNX_HOST}/usr/bin/nto${CMAKE_SYSTEM_PROCESSOR}-gcc${HOST_EXECUTABLE_SUFFIX})
  61. SET(CMAKE_C_FLAGS_DEBUG "-g")
  62. SET(CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG")
  63. SET(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG")
  64. SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
  65. SET(CMAKE_CXX_COMPILER ${QNX_HOST}/usr/bin/nto${CMAKE_SYSTEM_PROCESSOR}-c++${HOST_EXECUTABLE_SUFFIX})
  66. SET(CMAKE_CXX_FLAGS_DEBUG "-g")
  67. SET(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG")
  68. SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
  69. SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
  70. SET(CMAKE_FIND_ROOT_PATH ${QNX_TARGET})
  71. SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  72. SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  73. SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)