@@ -16,23 +16,23 @@ set(CMAKE_CXX_EXTENSIONS OFF)
16
16
17
17
# Set the project name and language
18
18
project (
19
- myproject
19
+ infiz
20
20
VERSION 0.0.1
21
21
DESCRIPTION ""
22
- HOMEPAGE_URL "%%myurl%% "
22
+ HOMEPAGE_URL "https://github.com/cpp-best-practices/infiz "
23
23
LANGUAGES CXX C)
24
24
25
25
include (cmake/PreventInSourceBuilds.cmake)
26
26
include (ProjectOptions.cmake)
27
27
28
28
29
- myproject_setup_options ()
29
+ infiz_setup_options ()
30
30
31
- myproject_global_options ()
31
+ infiz_global_options ()
32
32
include (Dependencies.cmake)
33
- myproject_setup_dependencies ()
33
+ infiz_setup_dependencies ()
34
34
35
- myproject_local_options ()
35
+ infiz_local_options ()
36
36
37
37
# don't know if this should be set globally from here or not...
38
38
set (CMAKE_CXX_VISIBILITY_PRESET hidden)
@@ -46,13 +46,13 @@ string(
46
46
8
47
47
GIT_SHORT_SHA)
48
48
49
- target_compile_features (myproject_options INTERFACE cxx_std_${CMAKE_CXX_STANDARD} )
49
+ target_compile_features (infiz_options INTERFACE cxx_std_${CMAKE_CXX_STANDARD} )
50
50
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 )
53
53
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)
56
56
57
57
# configure files based on CMake configuration options
58
58
add_subdirectory (configured_files)
@@ -74,9 +74,9 @@ if(BUILD_TESTING)
74
74
endif ()
75
75
76
76
77
- if (myproject_BUILD_FUZZ_TESTS )
77
+ if (infiz_BUILD_FUZZ_TESTS )
78
78
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 )
80
80
message (WARNING "You need asan or tsan enabled for meaningful fuzz testing" )
81
81
endif ()
82
82
add_subdirectory (fuzz_test)
@@ -102,11 +102,11 @@ include(cmake/PackageProject.cmake)
102
102
103
103
# Add other targets that you want installed here, by default we just package the one executable
104
104
# we know we want to ship
105
- myproject_package_project (
105
+ infiz_package_project (
106
106
TARGETS
107
107
intro
108
- myproject_options
109
- myproject_warnings
108
+ infiz_options
109
+ infiz_warnings
110
110
# FIXME: this does not work! CK
111
111
# PRIVATE_DEPENDENCIES_CONFIGURED project_options project_warnings
112
112
)
0 commit comments