diff --git a/CMakeLists.txt b/CMakeLists.txt index e08768b..3e3c820 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,17 +77,6 @@ if(AARE_SYSTEM_LIBRARIES) # on conda-forge endif() -if(AARE_VERBOSE) - add_compile_definitions(AARE_VERBOSE) - add_compile_definitions(AARE_LOG_LEVEL=aare::logDEBUG5) -else() - add_compile_definitions(AARE_LOG_LEVEL=aare::logERROR) -endif() - -if(AARE_CUSTOM_ASSERT) - add_compile_definitions(AARE_CUSTOM_ASSERT) -endif() - if(AARE_BENCHMARKS) add_subdirectory(benchmarks) endif() @@ -363,6 +352,7 @@ set(PUBLICHEADERS include/aare/GainMap.hpp include/aare/DetectorGeometry.hpp include/aare/JungfrauDataFile.hpp + include/aare/logger.hpp include/aare/NDArray.hpp include/aare/NDView.hpp include/aare/NumpyFile.hpp @@ -423,6 +413,15 @@ target_link_libraries( if(AARE_TESTS) target_compile_definitions(aare_core PRIVATE AARE_TESTS) +if(AARE_VERBOSE) + target_compile_definitions(aare_core PUBLIC AARE_VERBOSE) + target_compile_definitions(aare_core PUBLIC AARE_LOG_LEVEL=aare::logDEBUG5) +else() + target_compile_definitions(aare_core PUBLIC AARE_LOG_LEVEL=aare::logERROR) +endif() + +if(AARE_CUSTOM_ASSERT) + target_compile_definitions(aare_core PUBLIC AARE_CUSTOM_ASSERT) endif() set_target_properties(aare_core PROPERTIES @@ -463,12 +462,6 @@ if(AARE_TESTS) target_sources(tests PRIVATE ${TestSources} ) endif() - - -###------------------------------------------------------------------------------------------ -###------------------------------------------------------------------------------------------ - - if(AARE_MASTER_PROJECT) install(TARGETS aare_core aare_compiler_flags EXPORT "${TARGETS_EXPORT_NAME}"