From d415af2bdde2c9587d3290adb222e7f8e2ac8d50 Mon Sep 17 00:00:00 2001 From: rexy712 Date: Fri, 24 Apr 2020 14:31:24 -0700 Subject: [PATCH] Add a source file to ensure header only classes have proper syntax --- CMakeLists.txt | 2 ++ src/ensure.cpp | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 src/ensure.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index d84bab4..bfdce9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,8 @@ option(ENABLE_PROFILING "Enable asan" OFF) mark_as_advanced(ENABLE_PROFILING) set(SOURCE_LIST "src/binary.cpp" "src/filerd.cpp") +add_library(ensure OBJECT "src/ensure.cpp") +target_compile_options(ensure PRIVATE -Wall -Wextra -pedantic -std=c++17) if(ENABLE_SHARED) add_library(rexy SHARED ${SOURCE_LIST}) set_target_properties(rexy PROPERTIES SOVERSION "${librexy_VERSION_MAJOR}.${librexy_VERSION_MINOR}.${librexy_VERSION_REVISION}") diff --git a/src/ensure.cpp b/src/ensure.cpp new file mode 100644 index 0000000..3edf0c6 --- /dev/null +++ b/src/ensure.cpp @@ -0,0 +1,5 @@ +//Never actually used in the project. This just ensures that all syntax is correct during builds. + +#include "rexy/string.hpp" +#include "rexy/binary.hpp" +#include "rexy/filerd.hpp"