-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
42 lines (29 loc) · 1.41 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#Generated by CBProjectExporter : https://github.com/josephch/CBProjectExporter
cmake_minimum_required(VERSION 3.24.0)
project("log_parser")
set(TARGET_OUTPUTNAME "log-parser")
# Include CMakePrintHelpers module:
include(CMakePrintHelpers)
# -------------------------------------------------------------------------------------------------
# Compiler Include paths:
include_directories("${CMAKE_SOURCE_DIR}/compile-time-regular-expressions/single-header/"
)
# Compiler flags:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions")
# -------------------------------------------------------------------------------------------------
# Source files to compile:
FILE(GLOB SOURCE_FILES
"log_parser.cpp"
# ${CMAKE_SOURCE_DIR}compiler_output_parser.hpp
)
# Target type: ttExecutable
add_executable(${TARGET_OUTPUTNAME} ${SOURCE_FILES})
# Set the target output directory:
# Commented out as default output directory is preferred
# set_target_properties(${TARGET_OUTPUTNAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin")
unset(SOURCE_FILES)
# -------------------------------------------------------------------------------------------------
unset(TARGET_OUTPUTNAME)
# -------------------------------------------------------------------------------------------------