... | @@ -7,19 +7,19 @@ tasks. |
... | @@ -7,19 +7,19 @@ tasks. |
|
|
|
|
|
Rules for C++ sources:
|
|
Rules for C++ sources:
|
|
|
|
|
|
- CMAKE_CXX_CREATE_SHARED_LIBRARY
|
|
* `CMAKE_CXX_CREATE_SHARED_LIBRARY`
|
|
CMAKE_CXX_CREATE_SHARED_MODULE
|
|
* `CMAKE_CXX_CREATE_SHARED_MODULE`
|
|
CMAKE_CXX_CREATE_STATIC_LIBRARY
|
|
* `CMAKE_CXX_CREATE_STATIC_LIBRARY`
|
|
CMAKE_CXX_COMPILE_OBJECT
|
|
* `CMAKE_CXX_COMPILE_OBJECT`
|
|
CMAKE_CXX_LINK_EXECUTABLE
|
|
* `CMAKE_CXX_LINK_EXECUTABLE`
|
|
|
|
|
|
and the equivalents for C sources:
|
|
and the equivalents for C sources:
|
|
|
|
|
|
- CMAKE_C_CREATE_SHARED_LIBRARY
|
|
* `CMAKE_C_CREATE_SHARED_LIBRARY`
|
|
CMAKE_C_CREATE_SHARED_MODULE
|
|
* `CMAKE_C_CREATE_SHARED_MODULE`
|
|
CMAKE_C_CREATE_STATIC_LIBRARY
|
|
* `CMAKE_C_CREATE_STATIC_LIBRARY`
|
|
CMAKE_C_COMPILE_OBJECT
|
|
* `CMAKE_C_COMPILE_OBJECT`
|
|
CMAKE_C_LINK_EXECUTABLE
|
|
* `CMAKE_C_LINK_EXECUTABLE`
|
|
|
|
|
|
You can override the variables manually, e.g. replacing some flags in
|
|
You can override the variables manually, e.g. replacing some flags in
|
|
the linker command, but you can't change the value of the variables in
|
|
the linker command, but you can't change the value of the variables in
|
... | @@ -33,29 +33,29 @@ There are a couple dozen different less-then-greater-then tags that you |
... | @@ -33,29 +33,29 @@ There are a couple dozen different less-then-greater-then tags that you |
|
can put in build rules. From examining the source code the following
|
|
can put in build rules. From examining the source code the following
|
|
style names exist:
|
|
style names exist:
|
|
|
|
|
|
- ASSEMBLY_SOURCE
|
|
* `ASSEMBLY_SOURCE`
|
|
FLAGS
|
|
* `FLAGS`
|
|
LANGUAGE_COMPILE_FLAGS
|
|
* `LANGUAGE_COMPILE_FLAGS`
|
|
LINK_FLAGS
|
|
* `LINK_FLAGS`
|
|
LINK_LIBRARIES
|
|
* `LINK_LIBRARIES`
|
|
OBJECT
|
|
* `OBJECT`
|
|
OBJECTS
|
|
* `OBJECTS`
|
|
OBJECTS_QUOTED
|
|
* `OBJECTS_QUOTED`
|
|
OBJECT_DIR
|
|
* `OBJECT_DIR`
|
|
PREPROCESSED_SOURCE
|
|
* `PREPROCESSED_SOURCE`
|
|
SOURCE
|
|
* `SOURCE`
|
|
TARGET
|
|
* `TARGET`
|
|
TARGET_BASE
|
|
* `TARGET_BASE`
|
|
TARGET_IMPLIB
|
|
* `TARGET_IMPLIB`
|
|
TARGET_INSTALLNAME_DIR
|
|
* `TARGET_INSTALLNAME_DIR`
|
|
TARGET_PDB
|
|
* `TARGET_PDB`
|
|
TARGET_QUOTED
|
|
* `TARGET_QUOTED`
|
|
TARGET_SONAME
|
|
* `TARGET_SONAME`
|
|
TARGET_VERSION_MAJOR
|
|
* `TARGET_VERSION_MAJOR`
|
|
TARGET_VERSION_MINOR
|
|
* `TARGET_VERSION_MINOR`
|
|
|
|
|
|
Please note you can set these properties globally using SET or LIST, or
|
|
Please note you can set these properties globally using SET or LIST, or
|
|
for a single target using SET_TARGET_PROPERTIES.
|
|
for a single target using `SET_TARGET_PROPERTIES`.
|
|
|
|
|
|
----
|
|
----
|
|
This page was initially populated by conversion from its [original location](https://public.kitware.com/Wiki/CMake_Build_Rules) in another wiki. |
|
This page was initially populated by conversion from its [original location](https://public.kitware.com/Wiki/CMake_Build_Rules) in another wiki. |