From 4938a102fe14f4d3948b1fc9ea09f87e8c96cb1e Mon Sep 17 00:00:00 2001 From: Pagwin Date: Mon, 8 Apr 2024 14:08:40 -0400 Subject: [PATCH] changed template to match project --- CMakeLists.txt | 10 +--------- apps/CMakeLists.txt | 8 -------- apps/exe_entry.cpp | 4 ---- include/pit/iters.h | 0 include/pit/manipulators.h | 0 src/CMakeLists.txt | 8 ++++---- 6 files changed, 5 insertions(+), 25 deletions(-) delete mode 100644 apps/CMakeLists.txt delete mode 100644 apps/exe_entry.cpp create mode 100644 include/pit/iters.h create mode 100644 include/pit/manipulators.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 3171649..72503c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,20 +4,12 @@ cmake_minimum_required(VERSION 3.10) -project(project_name_here +project( pagwin_iterator_tools VERSION 0.1 LANGUAGES CXX) # setting this so compile_commands.json is generated for clangd set(CMAKE_EXPORT_COMPILE_COMMANDS 1) -# for convenience if they're needed -#find_package(Boost REQUIRED) -#find_package(fmt REQUIRED) - # lib src code add_subdirectory(src) - -# app source code -add_subdirectory(apps) - diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt deleted file mode 100644 index db89bb3..0000000 --- a/apps/CMakeLists.txt +++ /dev/null @@ -1,8 +0,0 @@ -# based heavily on https://gitlab.com/CLIUtils/modern-cmake/-/blob/master/examples/extended-project/apps/CMakeLists.txt - -add_executable(exe_name exe_entry.cpp) - -# example library link -#target_link_libraries(exe_name fmt::fmt) - -target_compile_features(exe_name PRIVATE cxx_std_20) diff --git a/apps/exe_entry.cpp b/apps/exe_entry.cpp deleted file mode 100644 index fe5388f..0000000 --- a/apps/exe_entry.cpp +++ /dev/null @@ -1,4 +0,0 @@ -int main(void){ - - return 0; -} diff --git a/include/pit/iters.h b/include/pit/iters.h new file mode 100644 index 0000000..e69de29 diff --git a/include/pit/manipulators.h b/include/pit/manipulators.h new file mode 100644 index 0000000..e69de29 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b171187..d4c735f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,17 +1,17 @@ # based heavily on https://gitlab.com/CLIUtils/modern-cmake/-/blob/master/examples/extended-project/src/CMakeLists.txt # example from when I was doing raft cpp impl -#set(HEADER_LIST "${raft_cpp_impl_SOURCE_DIR}/include/raft/lib.hpp") +set(HEADER_LIST "${pagwin_iterator_tools_SOURCE_DIR}/include/pit/iters.h" "${pagwin_iterator_tools_SOURCE_DIR}/include/pit/manipulators.h") -add_library(example_lib lib.cpp ${HEADER_LIST}) +add_library(pit lib.cpp ${HEADER_LIST}) # We need this directory, and users of our library will need it too -target_include_directories(exaple_lib PUBLIC ../include) +target_include_directories(pit PUBLIC ../include) #target_link_libraries(example_lib PRIVATE Boost::boost) -target_compile_features(example_lib PUBLIC cxx_std_17) +target_compile_features(pit PUBLIC cxx_std_17) # IDEs should put the headers in a nice place source_group(