A good practice when writing a library with CMake is to export any public targets. This enables code reuse and the usage of find_package().
Currently the tortelini target isn't being exported nor installed.
We should check whenever the project is a root project (ie. "${CMAKE_SOURCE_DIR} == ${CMAKE_CURRENT_SOURCE_DIR}"), provide an install target and export it.
A good practice when writing a library with CMake is to export any public targets. This enables code reuse and the usage of
find_package().Currently the
tortelinitarget isn't being exported nor installed.We should check whenever the project is a root project (ie.
"${CMAKE_SOURCE_DIR} == ${CMAKE_CURRENT_SOURCE_DIR}"), provide an install target and export it.