Skip to content

Commit 073d603

Browse files
author
Template Janitor
committed
Cleanup template and initialize repository
1 parent e4e7597 commit 073d603

35 files changed

+168
-510
lines changed

.github/FUNDING.yml

-4
This file was deleted.

.github/constants.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PROJECT_NAME=myproject
1+
PROJECT_NAME=infiz

.github/template/README.md

-16
This file was deleted.

.github/template/removal-list

-2
This file was deleted.

.github/template/template_name

-1
This file was deleted.

.github/template/template_repository

-1
This file was deleted.

.github/workflows/template-janitor.yml

-247
This file was deleted.

CMakeLists.txt

+16-16
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ set(CMAKE_CXX_EXTENSIONS OFF)
1616

1717
# Set the project name and language
1818
project(
19-
myproject
19+
infiz
2020
VERSION 0.0.1
2121
DESCRIPTION ""
22-
HOMEPAGE_URL "%%myurl%%"
22+
HOMEPAGE_URL "https://github.com/cpp-best-practices/infiz"
2323
LANGUAGES CXX C)
2424

2525
include(cmake/PreventInSourceBuilds.cmake)
2626
include(ProjectOptions.cmake)
2727

2828

29-
myproject_setup_options()
29+
infiz_setup_options()
3030

31-
myproject_global_options()
31+
infiz_global_options()
3232
include(Dependencies.cmake)
33-
myproject_setup_dependencies()
33+
infiz_setup_dependencies()
3434

35-
myproject_local_options()
35+
infiz_local_options()
3636

3737
# don't know if this should be set globally from here or not...
3838
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
@@ -46,13 +46,13 @@ string(
4646
8
4747
GIT_SHORT_SHA)
4848

49-
target_compile_features(myproject_options INTERFACE cxx_std_${CMAKE_CXX_STANDARD})
49+
target_compile_features(infiz_options INTERFACE cxx_std_${CMAKE_CXX_STANDARD})
5050

51-
add_library(myproject::myproject_options ALIAS myproject_options)
52-
add_library(myproject::myproject_warnings ALIAS myproject_warnings)
51+
add_library(infiz::infiz_options ALIAS infiz_options)
52+
add_library(infiz::infiz_warnings ALIAS infiz_warnings)
5353

54-
#add_library(myproject::myproject_options INTERFACE IMPORTED)
55-
#add_library(myproject::myproject_warnings INTERFACE IMPORTED)
54+
#add_library(infiz::infiz_options INTERFACE IMPORTED)
55+
#add_library(infiz::infiz_warnings INTERFACE IMPORTED)
5656

5757
# configure files based on CMake configuration options
5858
add_subdirectory(configured_files)
@@ -74,9 +74,9 @@ if(BUILD_TESTING)
7474
endif()
7575

7676

77-
if(myproject_BUILD_FUZZ_TESTS)
77+
if(infiz_BUILD_FUZZ_TESTS)
7878
message(AUTHOR_WARNING "Building Fuzz Tests, using fuzzing sanitizer https://www.llvm.org/docs/LibFuzzer.html")
79-
if (NOT myproject_ENABLE_ADDRESS_SANITIZER AND NOT myproject_ENABLE_THREAD_SANITIZER)
79+
if (NOT infiz_ENABLE_ADDRESS_SANITIZER AND NOT infiz_ENABLE_THREAD_SANITIZER)
8080
message(WARNING "You need asan or tsan enabled for meaningful fuzz testing")
8181
endif()
8282
add_subdirectory(fuzz_test)
@@ -102,11 +102,11 @@ include(cmake/PackageProject.cmake)
102102

103103
# Add other targets that you want installed here, by default we just package the one executable
104104
# we know we want to ship
105-
myproject_package_project(
105+
infiz_package_project(
106106
TARGETS
107107
intro
108-
myproject_options
109-
myproject_warnings
108+
infiz_options
109+
infiz_warnings
110110
# FIXME: this does not work! CK
111111
# PRIVATE_DEPENDENCIES_CONFIGURED project_options project_warnings
112112
)

Dependencies.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include(cmake/CPM.cmake)
33
# Done as a function so that updates to variables like
44
# CMAKE_CXX_FLAGS don't propagate out to other
55
# targets
6-
function(myproject_setup_dependencies)
6+
function(infiz_setup_dependencies)
77

88
# For each dependency, see if it's
99
# already been provided to us by a parent project

LICENSE

-24
This file was deleted.

0 commit comments

Comments
 (0)