CetMake

CetMake.cmake defines several commands for specifying build operations in CMake:

cet_make_exec

Make an executable.

See also

add_executable().

cet_make_exec(NAME <exec-name> [<options>])

Options

EXCLUDE_FROM_ALL

Set the EXCLUDE_FROM_ALL property on the executable target.

EXEC_NAME <exec-name>

Deprecated since version 2.10.00: use NAME <exec-name> instead

EXPORT_SET <export-set>

The executable will be exported as part of the specified export set.

LIBRARIES <library-specification> ...

Library dependencies (passed to target_link_libraries()).

LOCAL_INCLUDE_DIRS <dir> ...

Specify local include directories.

NAME <exec-name>

The built executable shall be named <exec-name>

NO_EXPORT

The executable target will not be exported or installed.

NO_EXPORT_ALL_SYMBOLS

Disable the default addition of -rdynamic or equivalent to the executable link stage.

NO_INSTALL

Synonym for NO_EXPORT.

NOP

Option / argument disambiguator; no other function.

SOURCE <source> ...

Source files to be compiled to produce the executable.

USE_BOOST_UNIT

The executable uses Boost unit test functions and should be compiled and linked accordingly.

USE_CATCH2_MAIN

The executable uses a generic Catch2 main() function and should be compiled and linked accordingly.

USE_CATCH_MAIN

Deprecated since version 2.10.00: use USE_CATCH2_MAIN

cet_script

Install the named scripts.

cet_script([<options>] <script> ...)

Options

ALWAYS_COPY

If specified, scripts will be copied to CMAKE_RUNTIME_OUTPUT_DIRECTORY at build time in addition to being installed. Otherwise, scripts will only be copied if they need to be made executable prior to installation.

DEPENDENCIES <dep> ...

If <dep> changes, <script> shall be considered out-of-date.

DESTINATION <dir>

Specify the installation directory (default <PROJECT-NAME>_SCRIPTS_DIR).

EXPORT_SET <export-set>

Scripts will be exported as part of the specified export set.

GENERATED

Deprecated since version 2.10.00: Redundant—added automatically by add_custom_command().

NO_EXPORT

The scripts shall not be exported as targets.

NO_INSTALL

The scripts shall not be installed; implies NO_EXPORT.

NOP

Option / argument disambiguator; no other function.

REMOVE_EXTENSIONS

Extensions will be removed from script names when they are installed.