Commit 2e0e128c authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

cmake: bits is now a header-only library

parent 7256d0bc
Pipeline #212 passed with stage
in 41 seconds
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(bits VERSION 0.9.99 LANGUAGES CXX)
add_library(libbits INTERFACE)
target_include_directories(libbits INTERFACE include/)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/bits DESTINATION include)
add_executable(test_parameter test/parameter.cpp)
set_target_properties(test_parameter PROPERTIES
......@@ -13,6 +20,8 @@ target_compile_definitions(test_parameter
$<$<CXX_COMPILER_ID:MSVC>:_CRT_SECURE_NO_WARNINGS>
$<$<CXX_COMPILER_ID:MSVC>:_SCL_SECURE_NO_WARNINGS>)
target_link_libraries(test_parameter libbits)
target_include_directories(test_parameter PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
......
......@@ -23,9 +23,9 @@
#include <tuple>
#include <vector>
#include "getopt.hpp"
#include "tagged-union.hpp"
#include "unit-test.hpp"
#include <bits/getopt.hpp>
#include <bits/tagged-union.hpp>
#include <bits/unit-test.hpp>
static void
check_getopt()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment