CMake Macros and Variables

From RAD Studio
Jump to: navigation, search

Go Up to Using CMake with C++ Builder


Windows Macros and Variables

Windows Macro

Macro Description Valid inputs

set_embt_target(target)

Sets the type of application to be build.
target: Type of application.

“VCL”, “FMX”, “Package”, “DynamicRuntime”

When building using an existing CMakeList.txt file, use the following CMake options:

-DCMAKE_SYSTEM_NAME=Windows

-DCMAKE_SYSTEM_PROCESSOR=x86_64

-DCMAKE_CROSSCOMPILING=OFF

-DCMAKE_BUILD_TYPE=Release

-DCMAKE_INSTALL_PREFIX=<install dir>

-DCMAKE_ASM_COMPILER=bcc64x

-DCMAKE_C_COMPILER=bcc64x

-DCMAKE_CXX_COMPILER=bcc64x

Windows Variable

Variable Description

EMBT_TARGET

Fixed value: "Windows" for Windows-Embarcadero.cmake


See Also

Using CMake with C++ Builder