From aeacf861a8ad8add5f4974792a88ffea393e41db Mon Sep 17 00:00:00 2001 From: Alexandre Bouvier Date: Tue, 2 Jan 2024 08:42:03 +0100 Subject: [PATCH] cmake: fix namespace and include dir (#74) --- CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git CMakeLists.txt CMakeLists.txt index 8f09295..7804947 100644 --- CMakeLists.txt +++ CMakeLists.txt @@ -48,7 +48,7 @@ configure_package_config_file(${PROJECT_NAME}Config.cmake.in ) install(FILES SimpleIni.h - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) install(TARGETS ${PROJECT_NAME} @@ -62,12 +62,15 @@ install(FILES ) install(EXPORT ${PROJECT_NAME}Targets DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake/${PROJECT_NAME} - NAMESPACE EXPORT_NAMESPACE + NAMESPACE ${EXPORT_NAMESPACE} ) -target_include_directories(${PROJECT_NAME} INTERFACE $) +target_include_directories(${PROJECT_NAME} INTERFACE + $ + $ +) if(IS_TOPLEVEL_PROJECT) - enable_testing() + include(CTest) add_subdirectory(tests) endif()