Skip to content

Commit d9d6f0c

Browse files
committed
Rename and add install to CMakeLists
1 parent 24e1e5b commit d9d6f0c

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,11 @@ cmake_minimum_required(VERSION 3.10)
22

33
project(compile_time_regexp)
44

5+
set(CMAKE_CXX_STANDARD 20)
6+
7+
enable_testing()
8+
59
add_subdirectory(tests)
610
add_subdirectory(example)
11+
12+
install(FILES compile_time_regexp.h DESTINATION include)
File renamed without changes.

example/example.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <iostream>
22

3-
#include "compile_time_regexp.hpp"
3+
#include "compile_time_regexp.h"
44

55
int main(void) {
66
// Compile-time DFA build.

tests/simple_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <catch2/catch_test_macros.hpp>
22

3-
#include "compile_time_regexp.hpp"
3+
#include "compile_time_regexp.h"
44

55
TEST_CASE("Match", "[Compile time match #1]") {
66
constexpr auto b1 = ctre::Match<"(a|b)*ab", "abababab">();

tests/utility_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <numeric>
44
#include <tuple>
55

6-
#include "compile_time_regexp.hpp"
6+
#include "compile_time_regexp.h"
77

88
template <>
99
struct ctre::_::hash<int> {

0 commit comments

Comments
 (0)