Installing Files — Mastering CMake
cmake.org › mastering-cmake › chapterSpecifies a user-provided CMake script file to be executed during installation. This is typically used to define pre-install or post-install actions for other rules. install (CODE …) Specifies user-provided CMake code to be executed during the installation. This is similar to install (SCRIPT) but the code is provided inline in the call as a string.
add_executable — CMake 3.23.0-rc4 Documentation
cmake.org › latest › commandSee the cmake-generator-expressions(7) manual for available expressions. New in version 3.11: The source files can be omitted if they are added later using target_sources() . By default the executable file will be created in the build tree directory corresponding to the source tree directory in which the command was invoked.