CMakeBorlandWindowsSystemConfig.cmake 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. # borland specific configure file
  2. # NOTE: all entries in here MUST be CACHE values, regular SET will NOT WORK!
  3. FIND_PATH(BCB_BIN_PATH bcc32.exe
  4. "C:/Program Files/Borland/CBuilder5/Bin"
  5. "C:/Borland/Bcc55/Bin"
  6. "/Borland/Bcc55/Bin"
  7. [HKEY_LOCAL_MACHINE/SOFTWARE/Borland/C++Builder/5.0/RootDir]/Bin
  8. )
  9. SET (CMAKE_BUILD_TOOL borlandmake CACHE INTERNAL
  10. "What is the target build tool cmake is generating for.")
  11. SET (CMAKE_SYSTEM "Win32" CACHE INTERNAL
  12. "What system is this. Result of uname.")
  13. SET (BORLAND 1 CACHE INTERNAL "This is the borland generator")
  14. SET (CMAKE_C_COMPILER ${BCB_BIN_PATH}/bcc32 CACHE FILEPATH
  15. "Name of C compiler used.")
  16. SET (CMAKE_C_FLAGS "-w- -whid -waus -tWM" CACHE STRING
  17. "Flags for C compiler.")
  18. SET (CMAKE_BUILD_TYPE Debug CACHE STRING
  19. "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel.")
  20. SET (CMAKE_CXX_COMPILER "${BCB_BIN_PATH}/bcc32" CACHE FILEPATH
  21. "Name of C++ compiler used.")
  22. SET (CMAKE_CXX_FLAGS_RELEASE "-O2" CACHE STRING
  23. "Flags used by the compiler during release builds.")
  24. SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-Od" CACHE STRING
  25. "Flags used by the compiler during Release with Debug Info builds.")
  26. SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O1" CACHE STRING
  27. "Flags used by the compiler during release minsize builds.")
  28. SET (CMAKE_CXX_FLAGS_DEBUG "-Od -v" CACHE STRING
  29. "Flags used by the compiler during debug builds.")
  30. SET (CMAKE_LINKER_FLAGS "-tWM" CACHE STRING
  31. "Flags used by the linker.")
  32. SET (CMAKE_LINKER_FLAGS_DEBUG "-v" CACHE STRING
  33. "Flags used by the linker during debug builds.")
  34. SET (CMAKE_LINKER_FLAGS_MINSIZEREL "" CACHE STRING
  35. "Flags used by the linker during release minsize builds.")
  36. SET (CMAKE_LINKER_FLAGS_RELEASE "" CACHE STRING
  37. "Flags used by the linker during release builds.")
  38. SET (CMAKE_LINKER_FLAGS_RELWITHDEBINFO "-v" CACHE STRING
  39. "Flags used by the linker during Release with Debug Info builds.")
  40. SET (CMAKE_CXX_FLAGS "-w- -whid -waus -wpar -tWM" CACHE STRING
  41. "Flags used to compile c++ files.")
  42. SET (CMAKE_USE_WIN32_THREADS 1 CACHE BOOL
  43. "Use the win32 thread library.")
  44. SET (CMAKE_STANDARD_WINDOWS_LIBRARIES "import32.lib" CACHE STRING
  45. "Libraries linked by defalut with all applications.")
  46. SET (CMAKE_SHLIB_SUFFIX ".dll" CACHE STRING
  47. "Shared library suffix.")
  48. SET (CMAKE_MODULE_SUFFIX ".dll" CACHE STRING
  49. "Module library suffix.")
  50. SET (CMAKE_OBJECT_FILE_SUFFIX ".obj" CACHE STRING
  51. "Object file suffix.")
  52. SET (CMAKE_EXECUTABLE_SUFFIX ".exe" CACHE STRING
  53. "Executable suffix.")
  54. SET (CMAKE_STATICLIB_SUFFIX ".lib" CACHE STRING
  55. "Static library suffix.")
  56. SET (CMAKE_SHLIB_SUFFIX ".dll" CACHE STRING
  57. "Shared library suffix.")
  58. SET (CMAKE_MODULE_SUFFIX ".dll" CACHE STRING
  59. "Module library suffix.")
  60. FIND_PROGRAM(CMAKE_MAKE_PROGRAM make ${BCB_BIN_PATH})
  61. # We will hardcode them for now. Make sure to fix that in the future
  62. SET (CMAKE_SIZEOF_INT 4 CACHE INTERNAL "Size of int data type")
  63. SET (CMAKE_SIZEOF_LONG 4 CACHE INTERNAL "Size of long data type")
  64. SET (CMAKE_SIZEOF_VOID_P 4 CACHE INTERNAL "Size of void* data type")
  65. SET (CMAKE_SIZEOF_CHAR 1 CACHE INTERNAL "Size of char data type")
  66. SET (CMAKE_SIZEOF_SHORT 2 CACHE INTERNAL "Size of short data type")
  67. SET (CMAKE_SIZEOF_FLOAT 4 CACHE INTERNAL "Size of float data type")
  68. SET (CMAKE_SIZEOF_DOUBLE 8 CACHE INTERNAL "Size of double data type")
  69. MARK_AS_ADVANCED(
  70. CMAKE_CXX_FLAGS_RELEASE
  71. CMAKE_CXX_FLAGS_RELWITHDEBINFO
  72. CMAKE_CXX_FLAGS_MINSIZEREL
  73. CMAKE_CXX_FLAGS_DEBUG
  74. CMAKE_LINKER_FLAGS
  75. CMAKE_LINKER_FLAGS_MINSIZEREL
  76. CMAKE_LINKER_FLAGS_RELEASE
  77. CMAKE_LINKER_FLAGS_RELWITHDEBINFO
  78. CMAKE_USE_WIN32_THREADS
  79. CMAKE_STANDARD_WINDOWS_LIBRARIES
  80. CMAKE_SHLIB_SUFFIX
  81. CMAKE_MODULE_SUFFIX
  82. CMAKE_OBJECT_FILE_SUFFIX
  83. CMAKE_EXECUTABLE_SUFFIX
  84. CMAKE_STATICLIB_SUFFIX
  85. CMAKE_SHLIB_SUFFIX
  86. CMAKE_MODULE_SUFFIX
  87. CMAKE_LINKER_FLAGS
  88. CMAKE_LINKER_FLAGS_DEBUG
  89. CMAKE_LINKER_FLAGS_MINSIZEREL
  90. CMAKE_LINKER_FLAGS_RELEASE
  91. CMAKE_LINKER_FLAGS_RELWITHDEBINFO
  92. )
  93. MARK_AS_ADVANCED( CLEAR
  94. TCL_LIBRARY
  95. TK_LIBRARY)