@@ -16,23 +16,23 @@ set(CMAKE_CXX_EXTENSIONS OFF)
1616
1717# Set the project name and language
1818project (
19- myproject
19+ cpp_weekly_cmake_template
2020 VERSION 0.0.1
2121 DESCRIPTION ""
22- HOMEPAGE_URL "%%myurl%% "
22+ HOMEPAGE_URL "https://github.com/ale-alfaro/cpp-weekly-cmake_template "
2323 LANGUAGES CXX C )
2424
2525include (cmake/PreventInSourceBuilds.cmake )
2626include (ProjectOptions.cmake )
2727
2828
29- myproject_setup_options ()
29+ cpp_weekly_cmake_template_setup_options ()
3030
31- myproject_global_options ()
31+ cpp_weekly_cmake_template_global_options ()
3232include (Dependencies.cmake )
33- myproject_setup_dependencies ()
33+ cpp_weekly_cmake_template_setup_dependencies ()
3434
35- myproject_local_options ()
35+ cpp_weekly_cmake_template_local_options ()
3636
3737# don't know if this should be set globally from here or not...
3838set (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 (cpp_weekly_cmake_template_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 (cpp_weekly_cmake_template::cpp_weekly_cmake_template_options ALIAS cpp_weekly_cmake_template_options )
52+ add_library (cpp_weekly_cmake_template::cpp_weekly_cmake_template_warnings ALIAS cpp_weekly_cmake_template_warnings )
5353
54- #add_library(myproject::myproject_options INTERFACE IMPORTED)
55- #add_library(myproject::myproject_warnings INTERFACE IMPORTED)
54+ #add_library(cpp_weekly_cmake_template::cpp_weekly_cmake_template_options INTERFACE IMPORTED)
55+ #add_library(cpp_weekly_cmake_template::cpp_weekly_cmake_template_warnings INTERFACE IMPORTED)
5656
5757# configure files based on CMake configuration options
5858add_subdirectory (configured_files )
@@ -74,9 +74,9 @@ if(BUILD_TESTING)
7474endif ()
7575
7676
77- if (myproject_BUILD_FUZZ_TESTS )
77+ if (cpp_weekly_cmake_template_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_SANITIZER_ADDRESS AND NOT myproject_ENABLE_SANITIZER_THREAD )
79+ if (NOT cpp_weekly_cmake_template_ENABLE_SANITIZER_ADDRESS AND NOT cpp_weekly_cmake_template_ENABLE_SANITIZER_THREAD )
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+ cpp_weekly_cmake_template_package_project (
106106 TARGETS
107107 intro
108- myproject_options
109- myproject_warnings
108+ cpp_weekly_cmake_template_options
109+ cpp_weekly_cmake_template_warnings
110110 # FIXME: this does not work! CK
111111 # PRIVATE_DEPENDENCIES_CONFIGURED project_options project_warnings
112112)
0 commit comments