CetMake¶
CetMake.cmake defines several commands for specifying build
operations in CMake:
- cet_make_exec¶
Make an executable.
See also
cet_make_exec(NAME <exec-name> [<options>])
Options¶
EXCLUDE_FROM_ALLSet the
EXCLUDE_FROM_ALLproperty on the executable target.EXEC_NAME <exec-name>Deprecated since version 2.10.00: use
NAME <exec-name> insteadEXPORT_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_EXPORTThe executable target will not be exported or installed.
NO_EXPORT_ALL_SYMBOLSDisable the default addition of -rdynamic or equivalent to the executable link stage.
NO_INSTALLSynonym for
NO_EXPORT.NOPOption / argument disambiguator; no other function.
SOURCE <source> ...Source files to be compiled to produce the executable.
USE_BOOST_UNITThe executable uses Boost unit test functions and should be compiled and linked accordingly.
USE_CATCH2_MAINThe executable uses a generic Catch2
main()function and should be compiled and linked accordingly.USE_CATCH_MAINDeprecated since version 2.10.00: use
USE_CATCH2_MAIN
- cet_script¶
Install the named scripts.
cet_script([<options>] <script> ...)
Options¶
ALWAYS_COPYIf specified, scripts will be copied to
CMAKE_RUNTIME_OUTPUT_DIRECTORYat 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.
GENERATEDDeprecated since version 2.10.00: Redundant—added automatically by
add_custom_command().NO_EXPORTThe scripts shall not be exported as targets.
NO_INSTALLThe scripts shall not be installed; implies
NO_EXPORT.NOPOption / argument disambiguator; no other function.
REMOVE_EXTENSIONSExtensions will be removed from script names when they are installed.
Cetmodules