Initial commit

This commit is contained in:
Bartek Kryza
2021-02-07 23:13:52 +01:00
commit 8ccd4bc81e
26 changed files with 27626 additions and 0 deletions

16
include/CMakeLists.txt Normal file
View File

@@ -0,0 +1,16 @@
# Make an explicit list of all source files in CLANGUML_INC. This is important
# because CMake is not a build system: it is a build system generator. Suppose
# you add a file foo.cpp to src/ after running cmake .. . If you set
# CLANGUML_INC with `file(GLOB ... )`, this is not passed to the makefile; it
# doesn't know that foo.cpp exists and will not re-run cmake. Your
# collaborator's builds will fail and it will be unclear why. Whether you use
# file(GLOB ...) or not, you will need to re-run cmake, but with an explicit
# file list, you know beforehand why your code isn't compiling.
set(CLANGUML_INC source_file.hpp)
# Form the full path to the source files...
PREPEND(CLANGUML_INC)
# ... and pass the variable to the parent scope.
set(CLANGUML_INC ${CLANGUML_INC} PARENT_SCOPE)

7
include/source_file.hpp Normal file
View File

@@ -0,0 +1,7 @@
#include <string>
template <class T>
T add(T a, T b){
return a + b;
}