Add a source file to ensure header only classes have proper syntax
This commit is contained in:
parent
4cad6f794d
commit
d415af2bdd
@ -15,6 +15,8 @@ option(ENABLE_PROFILING "Enable asan" OFF)
|
|||||||
mark_as_advanced(ENABLE_PROFILING)
|
mark_as_advanced(ENABLE_PROFILING)
|
||||||
|
|
||||||
set(SOURCE_LIST "src/binary.cpp" "src/filerd.cpp")
|
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)
|
if(ENABLE_SHARED)
|
||||||
add_library(rexy SHARED ${SOURCE_LIST})
|
add_library(rexy SHARED ${SOURCE_LIST})
|
||||||
set_target_properties(rexy PROPERTIES SOVERSION "${librexy_VERSION_MAJOR}.${librexy_VERSION_MINOR}.${librexy_VERSION_REVISION}")
|
set_target_properties(rexy PROPERTIES SOVERSION "${librexy_VERSION_MAJOR}.${librexy_VERSION_MINOR}.${librexy_VERSION_REVISION}")
|
||||||
|
|||||||
5
src/ensure.cpp
Normal file
5
src/ensure.cpp
Normal file
@ -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"
|
||||||
Loading…
x
Reference in New Issue
Block a user