2001-11-29 02:07:27 +03:00
|
|
|
# microsoft specific config file
|
|
|
|
|
|
|
|
FIND_PATH(BCB_BIN_PATH bcc32.exe
|
|
|
|
"C:/Program Files/Borland/CBuilder5/Bin"
|
|
|
|
"C:/Borland/Bcc55/Bin"
|
|
|
|
"/Borland/Bcc55/Bin"
|
|
|
|
[HKEY_LOCAL_MACHINE/SOFTWARE/Borland/C++Builder/5.0/RootDir]/Bin
|
|
|
|
)
|
2001-11-30 04:59:53 +03:00
|
|
|
|
2001-11-29 17:09:11 +03:00
|
|
|
SET (BORLAND 1)
|
2001-11-30 04:59:53 +03:00
|
|
|
|
2001-11-29 02:07:27 +03:00
|
|
|
SET (WORDS_BIGENDIAN )
|
2001-11-30 04:59:53 +03:00
|
|
|
|
2001-11-29 02:07:27 +03:00
|
|
|
SET (HAVE_LIMITS_H 1)
|
2001-11-30 04:59:53 +03:00
|
|
|
|
2001-11-29 02:07:27 +03:00
|
|
|
SET (HAVE_UNISTD_H 1)
|
2001-11-30 04:59:53 +03:00
|
|
|
|
2001-11-29 02:07:27 +03:00
|
|
|
SET (CMAKE_C_COMPILER ${BCB_BIN_PATH}/bcc32 CACHE FILEPATH
|
|
|
|
"Name of C compiler used.")
|
2001-11-30 04:59:53 +03:00
|
|
|
|
|
|
|
SET (CMAKE_C_FLAGS "-w- -whid -waus -wpar" CACHE STRING
|
2001-11-29 02:07:27 +03:00
|
|
|
"Flags for C compiler.")
|
2001-11-30 04:59:53 +03:00
|
|
|
|
2001-11-29 02:07:27 +03:00
|
|
|
SET (CMAKE_BUILD_TYPE Debug CACHE STRING
|
2001-11-30 04:59:53 +03:00
|
|
|
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel.")
|
|
|
|
|
|
|
|
SET (CMAKE_CXX_COMPILER "${BCB_BIN_PATH}/bcc32" CACHE FILEPATH
|
|
|
|
"Name of C++ compiler used.")
|
|
|
|
|
2001-11-29 02:07:27 +03:00
|
|
|
SET (CMAKE_CXX_FLAGS_RELEASE "-O2" CACHE STRING
|
2001-11-30 04:59:53 +03:00
|
|
|
"Flags used by the compiler during release builds.")
|
|
|
|
|
2001-11-29 02:07:27 +03:00
|
|
|
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-Od" CACHE STRING
|
2001-11-30 04:59:53 +03:00
|
|
|
"Flags used by the compiler during Release with Debug Info builds.")
|
|
|
|
|
2001-11-29 02:07:27 +03:00
|
|
|
SET (CMAKE_CXX_FLAGS_MINSIZEREL "-O1" CACHE STRING
|
2001-11-30 04:59:53 +03:00
|
|
|
"Flags used by the compiler during release minsize builds.")
|
|
|
|
|
2001-12-04 01:01:40 +03:00
|
|
|
SET (CMAKE_CXX_FLAGS_DEBUG "-Od -v" CACHE STRING
|
2001-11-30 04:59:53 +03:00
|
|
|
"Flags used by the compiler during debug builds.")
|
|
|
|
|
2001-12-04 02:04:21 +03:00
|
|
|
SET (CMAKE_LINKER_FLAGS "-tWM" CACHE STRING
|
2001-12-04 01:01:40 +03:00
|
|
|
"Flags used by the linker.")
|
|
|
|
|
|
|
|
SET (CMAKE_LINKER_FLAGS_DEBUG "-v" CACHE STRING
|
|
|
|
"Flags used by the linker during debug builds.")
|
|
|
|
|
|
|
|
SET (CMAKE_LINKER_FLAGS_MINSIZEREL "" CACHE STRING
|
|
|
|
"Flags used by the linker during release minsize builds.")
|
|
|
|
|
|
|
|
SET (CMAKE_LINKER_FLAGS_RELEASE "" CACHE STRING
|
|
|
|
"Flags used by the linker during release builds.")
|
|
|
|
|
|
|
|
SET (CMAKE_LINKER_FLAGS_RELWITHDEBINFO "-v" CACHE STRING
|
|
|
|
"Flags used by the linker during Release with Debug Info builds.")
|
|
|
|
|
2001-11-29 02:07:27 +03:00
|
|
|
SET (CMAKE_CXX_FLAGS "-w- -whid -waus -wpar" CACHE STRING
|
2001-11-30 04:59:53 +03:00
|
|
|
"Flags used by the compiler during all build types, /GX /GR are for exceptions and rtti in VC++, /Zm1000 increases the compiler's memory allocation to support ANSI C++/stdlib.")
|
|
|
|
|
|
|
|
SET (CMAKE_USE_WIN32_THREADS 1 CACHE BOOL
|
|
|
|
"Use the win32 thread library.")
|
2001-11-29 02:07:27 +03:00
|
|
|
|
2001-11-30 04:59:53 +03:00
|
|
|
SET (CMAKE_STANDARD_WINDOWS_LIBRARIES "import32.lib" CACHE STRING
|
|
|
|
"Libraries linked by defalut with all applications.")
|
2001-11-29 02:07:27 +03:00
|
|
|
|
2001-11-30 04:59:53 +03:00
|
|
|
SET (CMAKE_SHLIB_SUFFIX ".dll" CACHE STRING
|
|
|
|
"Shared library suffix.")
|
2001-11-29 02:07:27 +03:00
|
|
|
|
2001-11-30 07:24:37 +03:00
|
|
|
SET (CMAKE_MODULE_SUFFIX ".dll" CACHE STRING
|
|
|
|
"Module library suffix.")
|
|
|
|
SET (CMAKE_OBJECT_FILE_SUFFIX ".obj" CACHE STRING
|
|
|
|
"Object file suffix.")
|
|
|
|
|
|
|
|
SET (CMAKE_EXECUTABLE_SUFFIX ".exe" CACHE STRING
|
|
|
|
"Executable suffix.")
|
|
|
|
|
|
|
|
SET (CMAKE_STATICLIB_SUFFIX ".lib" CACHE STRING
|
|
|
|
"Static library suffix.")
|
|
|
|
|
|
|
|
SET (CMAKE_SHLIB_SUFFIX ".dll" CACHE STRING
|
|
|
|
"Shared library suffix.")
|
|
|
|
|
2001-11-30 04:59:53 +03:00
|
|
|
SET (CMAKE_MODULE_SUFFIX ".dll" CACHE STRING
|
|
|
|
"Module library suffix.")
|
2001-11-29 02:07:27 +03:00
|
|
|
|
2001-11-30 04:59:53 +03:00
|
|
|
FIND_PROGRAM(CMAKE_MAKE_PROGRAM make ${BCB_BIN_PATH})
|