diff options
| author | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-06 19:03:19 +0100 |
|---|---|---|
| committer | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-01-06 19:03:19 +0100 |
| commit | bbd7c7a5d6bfb12df3898c4589753b59ce674576 (patch) | |
| tree | d7f552533851bb0418bc98581264f30c515b5970 /CMakeLists.txt | |
| parent | 451ad9aa0f7f44c9cec4143e6f7ddca0ed84bc42 (diff) | |
| download | cxxformat-bbd7c7a5d6bfb12df3898c4589753b59ce674576.tar.gz cxxformat-bbd7c7a5d6bfb12df3898c4589753b59ce674576.zip | |
Add header only library, adjust include statements and rename test target
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 49b8ecc..bd2f310 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,16 @@ set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) project(cxxformat) +add_library(cxxformat INTERFACE + cxxformat/cxxformat + cxxformat/core.hpp + cxxformat/file_ptr.hpp + cxxformat/formatters.hpp + cxxformat/helpers.hpp + cxxformat/ostream.hpp + cxxformat/string.hpp +) +target_include_directories(cxxformat INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) -add_executable(cxxformat main.cpp) - -install(TARGETS cxxformat RUNTIME DESTINATION bin) +add_executable(test EXCLUDE_FROM_ALL main.cpp) +target_link_libraries(test PRIVATE cxxformat) |
