Remember that installation logic we wrote in the Reusing quality code section? If you're relying on Conan for packaging, you probably don't need to run the bare CMake exporting and installation logic. Assuming you want to only export and install if Conan is not used, you need to modify the section of your CMakeLists described in the Installing subsection previously to look similar to this:
if(NOT CONAN_EXPORTED)
install(
EXPORT CustomerTargets
FILE CustomerTargets.cmake
NAMESPACE domifair::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Customer)
configure_file(${PROJECT_SOURCE_DIR}/cmake/CustomerConfig.cmake.in
CustomerConfig.cmake @ONLY)
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
CustomerConfigVersion.cmake
VERSION ${PACKAGE_VERSION}
COMPATIBILITY AnyNewerVersion)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/CustomerConfig.cmake
${CMAKE_CURRENT_BINARY_DIR...