Install target now generate a clean CMake package :
lib folder that contains the static library (debug and release)
include folder that contains the *.h
cmake folder that contains all the cmake related files (exported targets + version file)
This allow the package to be found by a find_package() call if you set serial_DIR var to the path of cmake folder.
# You can also specify the version if needed
find_package(serial REQUIRED)
# Don't need to specify serial include directories as the target already defines them.
target_link_libraries(my_target PUBLIC serial)
This PR also disable Catkin dependency by default, you can restore it by setting USE_CATKIN option to ON.
Also the option BUILD_SAMPLE allow you to build or not the sample (default is ON).
This is somewhat #133 is trying to do while keeping Catkin dependency as an option if needed.
Install target now generate a clean CMake package :
lib
folder that contains the static library (debug and release)include
folder that contains the *.hcmake
folder that contains all the cmake related files (exported targets + version file)This allow the package to be found by a
find_package()
call if you setserial_DIR
var to the path ofcmake
folder.This PR also disable Catkin dependency by default, you can restore it by setting
USE_CATKIN
option to ON.Also the option
BUILD_SAMPLE
allow you to build or not the sample (default is ON).This is somewhat #133 is trying to do while keeping Catkin dependency as an option if needed.