From e566562d414d41a3682952c47b402071b6c9ad0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jur=C4=8Da?= Date: Wed, 22 Nov 2023 16:44:40 +0100 Subject: [PATCH] formated --- CMakeLists.txt | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 81b5620..29d7ecc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,11 +39,10 @@ CPMAddPackage( OPTIONS "FMT_INSTALL YES" # create an installable target ) - CPMAddPackage( - GITHUB_REPOSITORY gabime/spdlog - VERSION 1.12.0 - OPTIONS "SPDLOG_FMT_EXTERNAL 1" + GITHUB_REPOSITORY gabime/spdlog + VERSION 1.12.0 + OPTIONS "SPDLOG_FMT_EXTERNAL 1" ) # ---- Add source files ---- @@ -53,9 +52,8 @@ file(GLOB_RECURSE headers CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/include file(GLOB_RECURSE sources CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp") # ---- Create library ---- -# add_library(Filestorm ${headers} ${sources}) -# Note: for header-only libraries change all PUBLIC flags to INTERFACE and create an interface -# target: add_library(${PROJECT_NAME} INTERFACE) +# add_library(Filestorm ${headers} ${sources}) Note: for header-only libraries change all PUBLIC +# flags to INTERFACE and create an interface target: add_library(${PROJECT_NAME} INTERFACE) add_library(lib${PROJECT_NAME} ${headers} ${sources}) set_target_properties(lib${PROJECT_NAME} PROPERTIES CXX_STANDARD 17) @@ -67,7 +65,7 @@ target_link_libraries(lib${PROJECT_NAME} PRIVATE fmt::fmt) target_include_directories( lib${PROJECT_NAME} PUBLIC $ - $ + $ ) # ---- Create an installable target ---- @@ -89,10 +87,8 @@ packageProject( DEPENDENCIES "fmt 10.1.1" ) - file(GLOB standalone_sources CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/standalone/source/*.cpp) - add_executable(${PROJECT_NAME} ${standalone_sources}) set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 17 OUTPUT_NAME "Filestorm")