Changes between Version 9 and Version 10 of cmake_modules
- Timestamp:
- Feb 20, 2019, 4:00:33 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified cmake_modules
v9 v10 25 25 reimplements some cmake built in functions to add extra functionalities 26 26 27 * ''ADD_EXECUTABLE'': check if $HOME/.ssh/config have some hosts defined (see [wiki:setup#ConfigureSSHhostsoptional here]). In this case add a custom_target to cmake, to copy the executable with ssh. The custom target is called ''delivery_root_ADDRESS_PATH'', with address the target address and path the destination path. Also add a message to display architecture 27 * ''ADD_EXECUTABLE'': 28 * add a message to display architecture 29 * check if $HOME/.ssh/config have some hosts defined (see [wiki:setup#ConfigureSSHhostsoptional here]). In this case add a custom_target to cmake, to copy the executable with ssh. The custom target is called ''delivery_root_ADDRESS_PATH'', with address the target address and path the destination path. 30 * copy demos binaries. To enable this functionality, you need to add ''SET(FLAIR_DEMO_DEST_DIR yourproject)'' to your ''CMakeLists.txt'', see this [source:flair-src/trunk/demos/CircleFollower/uav/CMakeLists.txt example]. Files will be copied to ''$FLAIR_ROOT/flair-install/bin/demos/${ARCH_DIR}/yourproject'' 28 31 29 * ''ADD_LIBRARY'': add a message to display architecture. Also add compile info in a .h (used by libs constructor), see [source:flair-src/trunk/lib/FlairMeta/src/UavFactory.cpp in FlairMeta] for example. 32 * ''ADD_LIBRARY'': 33 * add a message to display architecture. 34 * add compile info in a .h (used by libs constructor), see [source:flair-src/trunk/lib/FlairMeta/src/UavFactory.cpp in FlairMeta] for example. 30 35 31 * ''INSTALL'': copy resources files (scripts and xml files for the demos). Resources files are places in the ''resources'' dir, and inside an arch dir. See for example in the [source:flair-src/trunk/demos/CircleFollower/uav/resources CircleFollower demo]. These files are not overwritten if they already exist. To enable this functionality, you need to add ''SET(FLAIR_COPY_RESOURCE_FILES true)'' to your ''CMakeLists.txt'' 36 * ''INSTALL'': 37 * copy resources files (scripts and xml files for the demos). Resources files are placed in the ''resources'' dir, and inside an arch dir. See for example in the [source:flair-src/trunk/demos/CircleFollower/uav/resources CircleFollower demo]. These files are not overwritten if they already exist. To enable this functionality, you need to add ''SET(FLAIR_RESOURCE_FILES_DEST_DIR yourproject)'' to your ''CMakeLists.txt'', see this [source:flair-src/trunk/demos/CircleFollower/uav/CMakeLists.txt example]. Files will be copied to ''$FLAIR_ROOT/flair-install/bin/demos/${ARCH_DIR}/yourproject'' 32 38 33 39 == [source:flair-dev/trunk/cmake-modules/FlairUseFile.cmake FlairUseFile.cmake] ==