File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20)
22
33project (AsyncLogger LANGUAGES CXX VERSION 0.0.1 DESCRIPTION "A lightweight C++20 asyncronous logger." )
44
5- set (SRC_DIR "${PROJECT_SOURCE_DIR} /src/ " )
5+ set (SRC_DIR "${PROJECT_SOURCE_DIR} /src" )
66
77# check std::format support
88if (NOT USE_FMT)
1313endif ()
1414
1515file (GLOB_RECURSE SRC_FILES
16- "${SRC_DIR} **.cpp"
17- "${SRC_DIR} **.hpp"
16+ "${SRC_DIR} / **.cpp"
17+ "${SRC_DIR} / **.hpp"
1818)
1919
2020add_library (${PROJECT_NAME} STATIC ${SRC_FILES} )
@@ -40,7 +40,8 @@ endif()
4040find_package (Threads REQUIRED )
4141target_link_libraries (${PROJECT_NAME} Threads::Threads )
4242
43- set_target_properties (${PROJECT_NAME} PROPERTIES PUBLIC_HEADER src /Logger.hpp )
43+ set_target_properties (${PROJECT_NAME} PROPERTIES PUBLIC_HEADER " ${SRC_DIR} /Logger.hpp" )
4444set_property (TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 20 )
4545
46+ target_precompile_headers (${PROJECT_NAME} PUBLIC "${SRC_DIR} /common.hpp" )
4647target_include_directories (${PROJECT_NAME} PUBLIC ${SRC_DIR} )
Original file line number Diff line number Diff line change 1+ #pragma once
2+
3+ #include < chrono>
4+ #include < functional>
5+ #include < source_location>
6+ #include < string>
7+ #include < sstream>
8+ #include < thread>
You can’t perform that action at this time.
0 commit comments