Haiku.cmake 1.1 KB

1234567891011121314151617181920212223242526
  1. SET(BEOS 1)
  2. # GCC is the default compiler on Haiku.
  3. INCLUDE(${CMAKE_ROOT}/Modules/Platform/gcc.cmake)
  4. SET(CMAKE_DL_LIBS root be)
  5. SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
  6. SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-nostart")
  7. SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
  8. SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
  9. SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
  10. SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-soname,")
  11. INCLUDE(Platform/UnixPaths)
  12. LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH /boot/common)
  13. LIST(APPEND CMAKE_SYSTEM_INCLUDE_PATH /boot/common/include)
  14. LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH /boot/common/lib)
  15. LIST(APPEND CMAKE_SYSTEM_PROGRAM_PATH /boot/common/bin)
  16. LIST(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES /boot/common/lib)
  17. LIST(APPEND CMAKE_SYSTEM_INCLUDE_PATH /boot/develop/headers/3rdparty)
  18. LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH /boot/develop/lib/x86)
  19. IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
  20. SET(CMAKE_INSTALL_PREFIX "/boot/common" CACHE PATH
  21. "Install path prefix, prepended onto install directories." FORCE)
  22. ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)