From 7b369535f42c9c787dca2d1afc888aa282d8896f Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sat, 5 Mar 2022 12:48:26 +0100 Subject: [PATCH] Configured project --- Doxygen/doxyfig | 2 +- Src/CMakeLists.txt | 4 ++-- Test/CMakeLists.txt | 2 +- configure.sh | 2 +- readme.md | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Doxygen/doxyfig b/Doxygen/doxyfig index 1ab0f41..50d1f62 100644 --- a/Doxygen/doxyfig +++ b/Doxygen/doxyfig @@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8 # title of most generated pages and in a few other places. # The default value is: My Project. -PROJECT_NAME = "Leonetienne/{PROJECT_NAME}" +PROJECT_NAME = "Leonetienne/BmpPP" # The PROJECT_NUMBER tag can be used to enter a project or revision number. This # could be handy for archiving the generated documentation or if some version diff --git a/Src/CMakeLists.txt b/Src/CMakeLists.txt index be1ef3a..1d3b294 100644 --- a/Src/CMakeLists.txt +++ b/Src/CMakeLists.txt @@ -1,9 +1,9 @@ cmake_minimum_required(VERSION 3.16) -project({PROJECT_NAME}) +project(BmpPP) set(CMAKE_CXX_STANDARD 17) -add_library({PROJECT_NAME} +add_library(BmpPP ) diff --git a/Test/CMakeLists.txt b/Test/CMakeLists.txt index 6906668..31e1055 100644 --- a/Test/CMakeLists.txt +++ b/Test/CMakeLists.txt @@ -12,5 +12,5 @@ add_executable(Test ) -target_link_libraries(Test {PROJECT_NAME}) +target_link_libraries(Test BmpPP) diff --git a/configure.sh b/configure.sh index fb8485e..7aa2aa5 100644 --- a/configure.sh +++ b/configure.sh @@ -1,5 +1,5 @@ #!/bin/bash # Replace {PROJECT_NAME} with first parameter given in all files -find . -type f -exec sed -i "s/{PROJECT_NAME}/$1/g" {} \; +find . -type f -not \( -path '*.git/*' -or -path '*configure.sh*' -or -name 'Catch2.h' \) -exec sed -i "s/{PROJECT_NAME}/$1/g" {} \; diff --git a/readme.md b/readme.md index 3e39ca3..d0bd75b 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# {PROJECT_NAME} +# BmpPP Run `configure.sh MyAwesomeLibrary` to give your project a name. # LICENSE