Skip to content

Commit ceacf93

Browse files
committed
renaming of files and folders
1 parent b394b42 commit ceacf93

13 files changed

+26
-26
lines changed
Binary file not shown.
Binary file not shown.

CMakeLists.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.16)
22

33
project(
4-
DiceTemplateLibrary
4+
dice-template-library
55
VERSION 0.1.0
66
DESCRIPTION
77
"This template library is a collection of template-oriented code that we, the Data Science Group at UPB, found pretty handy. It contains `switch_cases` (Use runtime values in compile-time context) and `IntegralTemplatedTuple` (Create a tuple-like structure that instantiates a template for a range of values)."
@@ -14,17 +14,17 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
1414
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1515
endif()
1616

17-
add_library(DiceTemplateLibrary INTERFACE)
18-
add_library(DiceTemplateLibrary::DiceTemplateLibrary ALIAS DiceTemplateLibrary)
17+
add_library(dice-template-library INTERFACE)
18+
add_library(dice-template-library::dice-template-library ALIAS dice-template-library)
1919

2020
target_include_directories(
21-
DiceTemplateLibrary
21+
dice-template-library
2222
INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
2323

24-
target_compile_features(DiceTemplateLibrary INTERFACE cxx_std_20)
24+
target_compile_features(dice-template-library INTERFACE cxx_std_20)
2525

26-
include(cmake/headerOnlyInstall.cmake)
27-
installheaderonly(DiceTemplateLibrary include/Dice)
26+
include(cmake/header-only-install.cmake)
27+
installheaderonly(dice-template-library include/Dice)
2828

2929
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
3030
include(CTest)

cmake/headerOnlyInstall.cmake cmake/header-only-install.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function(installHeaderOnly)
2929
COMPATIBILITY SameMajorVersion)
3030

3131
configure_package_config_file(
32-
"${PROJECT_SOURCE_DIR}/cmake/${PROJECT_NAME}Config.cmake.in"
32+
"${PROJECT_SOURCE_DIR}/cmake/${PROJECT_NAME}-config.cmake.in"
3333
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
3434
INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/cmake)
3535

examples/CMakeLists.txt

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
add_executable(examples_SwitchTemplateFunctions
2-
examples_SwitchTemplateFunctions.cpp)
3-
target_link_libraries(examples_SwitchTemplateFunctions
4-
PRIVATE DiceTemplateLibrary)
1+
add_executable(examples_switch_template_functions
2+
examples_switch_template_functions.cpp)
3+
target_link_libraries(examples_switch_template_functions
4+
PRIVATE dice-template-library)
55

6-
add_executable(examples_IntegralTemplatedTuple
7-
examples_IntegralTemplatedTuple.cpp)
8-
target_link_libraries(examples_IntegralTemplatedTuple
9-
PRIVATE DiceTemplateLibrary)
6+
add_executable(examples_integral_templated_tuple
7+
examples_integral_templated_tuple.cpp)
8+
target_link_libraries(examples_integral_templated_tuple
9+
PRIVATE dice-template-library)

examples/examples_IntegralTemplatedTuple.cpp examples/examples_integral_templated_tuple.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <Dice/template_library/IntegralTemplatedTuple.hpp>
1+
#include <Dice/template-library/integral_templated_tuple.hpp>
22

33
#include <array>
44
#include <iostream>

examples/examples_SwitchTemplateFunctions.cpp examples/examples_switch_template_functions.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <Dice/template_library/SwitchTemplateFunctions.hpp>
1+
#include <Dice/template-library/switch_template_functions.hpp>
22

33
#include <iostream>
44

@@ -57,4 +57,4 @@ int main() {
5757
});
5858
std::cout << a << "*" << b << "*" << c << " = " << res << '\n';
5959
}
60-
}
60+
}

tests/CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ macro(CUSTOM_ADD_TEST)
1717
"Call to 'CUSTOM_ADD_TEST' with ${ARGC} arguments instead of 1")
1818
endif()
1919
add_test(NAME ${ARGV0} COMMAND ${ARGV0})
20-
target_link_libraries(${ARGV0} PRIVATE doctest DiceTemplateLibrary)
20+
target_link_libraries(${ARGV0} PRIVATE doctest dice-template-library)
2121
add_dependencies(build_tests ${ARGV0})
2222
endmacro()
2323

24-
add_executable(tests_SwitchTemplateFunctions tests_SwitchTemplateFunctions.cpp)
25-
custom_add_test(tests_SwitchTemplateFunctions)
24+
add_executable(tests_switch_template_functions tests_switch_template_functions.cpp)
25+
custom_add_test(tests_switch_template_functions)
2626

27-
add_executable(tests_IntegralTemplatedTuple tests_IntegralTemplatedTuple.cpp)
28-
custom_add_test(tests_IntegralTemplatedTuple)
27+
add_executable(tests_integral_templated_tuple tests_integral_templated_tuple.cpp)
28+
custom_add_test(tests_integral_templated_tuple)

tests/tests_IntegralTemplatedTuple.cpp tests/tests_integral_templated_tuple.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
22

3-
#include <Dice/template_library/IntegralTemplatedTuple.hpp>
3+
#include <Dice/template-library/integral_templated_tuple.hpp>
44

55
#include <doctest/doctest.h>
66

tests/tests_SwitchTemplateFunctions.cpp tests/tests_switch_template_functions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
22

3-
#include <Dice/template_library/SwitchTemplateFunctions.hpp>
3+
#include <Dice/template-library/switch_template_functions.hpp>
44

55
#include <doctest/doctest.h>
66

0 commit comments

Comments
 (0)