Open MilchRatchet opened 3 years ago
Is {LIBRARY}_UTILS
a single file or a folder?
How to start the project? I think at first we need a CMakeLists.txt or maybe even a tree of such files. Will you create them?
{LIBRARY}_UTILS
is a single file.
Yeah we need a CMakeLists.txt, we could either have one or we could split it up for each library. I think simply having one CMakeLists.txt is fine though. If you want you can create it.
Ok I'll create such CMakeLists.txt
but I want to create one separated file for each folder because then we could easily use the modularity if the project.
Here are some concepts for this project, you can add or suggest changing these if you want.
AAL/
). The header files are copied to the output folder when building.C++
. If you do, the source file should be*.cpp
, the header should be*.h
. The signature of the function should beC
valid, i.e. inputs may not be instances of classes etc. Functions should beextern "C"
and in the header file this should be declared conditionally based on ifcpp
is defined.{LIBRARY}_{PROBLEM}_{ALGORITHM}
where{ALGORITHM}
may be left out if there is only one algorithm for a given problem. For exampleAAL_KNAPSACK
.{LIBRARY}_UTILS
unless that particular code is very large. In that case we will have to see what we do.