diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt index 5c490d5..2e6b24f 100644 --- a/src/cpp/CMakeLists.txt +++ b/src/cpp/CMakeLists.txt @@ -31,6 +31,11 @@ target_include_directories(${library_name} PUBLIC include) target_include_directories(${library_name} PUBLIC ${Boost_INCLUDE_DIRECTORIES}) target_include_directories(${library_name} PUBLIC ${nlohmann_json_SOURCE_DIR}/single_include) target_link_libraries(${library_name} ${Boost_locale_LIBRARIES}) +set_target_properties(alog PROPERTIES PUBLIC_HEADER include/alog/logger.hpp) +install( + TARGETS alog + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alog +) # Add the unit tests if enabled option(BUILD_UNIT_TESTS "Build the unit tests" ON) diff --git a/src/cpp/Dockerfile b/src/cpp/Dockerfile index fe5bcb0..88b8858 100644 --- a/src/cpp/Dockerfile +++ b/src/cpp/Dockerfile @@ -34,6 +34,10 @@ RUN true && \ cmake .. && \ make && \ ctest && \ + make install && \ + test -e /usr/local/include/alog/logger.hpp && \ + test -e /usr/local/lib/libalog.so && \ + test -e /usr/local/include/nlohmann/json.hpp && \ true ## Release Test ################################################################ diff --git a/src/cpp/include/logger.h b/src/cpp/include/alog/logger.hpp similarity index 100% rename from src/cpp/include/logger.h rename to src/cpp/include/alog/logger.hpp diff --git a/src/cpp/src/logger.cpp b/src/cpp/src/logger.cpp index f68f93e..f2e1979 100644 --- a/src/cpp/src/logger.cpp +++ b/src/cpp/src/logger.cpp @@ -20,7 +20,7 @@ */ // Local -#include "logger.h" +#include "alog/logger.hpp" // Standard #include diff --git a/src/cpp/tests/include/unit_testing.h b/src/cpp/tests/include/unit_testing.h index 268e2f3..608fb34 100644 --- a/src/cpp/tests/include/unit_testing.h +++ b/src/cpp/tests/include/unit_testing.h @@ -21,7 +21,7 @@ #include #include -#include "logger.h" +#include "alog/logger.hpp" namespace test { diff --git a/src/cpp/tools/alog_fib_example/include/fibonacci.h b/src/cpp/tools/alog_fib_example/include/fibonacci.h index 5775fcd..c942897 100644 --- a/src/cpp/tools/alog_fib_example/include/fibonacci.h +++ b/src/cpp/tools/alog_fib_example/include/fibonacci.h @@ -21,7 +21,7 @@ #include // First Party -#include +#include namespace fib { diff --git a/src/cpp/tools/alog_fib_example/main.cpp b/src/cpp/tools/alog_fib_example/main.cpp index a782a59..b7bb783 100644 --- a/src/cpp/tools/alog_fib_example/main.cpp +++ b/src/cpp/tools/alog_fib_example/main.cpp @@ -21,7 +21,7 @@ #include // First Party -#include +#include // Local #include "util.h" @@ -158,4 +158,4 @@ int main(int argc, char *argv[]) ALOG(MAIN, info, ss.str()); } } -} \ No newline at end of file +}