Bladeren bron

Fix: missing c++ file in CMakeLists.txt and rename file

Eric Ramat 6 jaren geleden
bovenliggende
commit
70a9b815e0
3 gewijzigde bestanden met toevoegingen van 31 en 8 verwijderingen
  1. 1 1
      src/artis/utils/CMakeLists.txt
  2. 30 0
      src/artis/utils/Trace.cpp
  3. 0 7
      src/artis/utils/trace.cpp

+ 1 - 1
src/artis/utils/CMakeLists.txt

@@ -5,7 +5,7 @@ INCLUDE_DIRECTORIES(
 LINK_DIRECTORIES(
   ${Boost_LIBRARY_DIRS})
 
-SET(ARTIS_UTILS_CPP DateTime.cpp ParametersReader.cpp)
+SET(ARTIS_UTILS_CPP DateTime.cpp ParametersReader.cpp Trace.cpp)
 
 SET(ARTIS_UTILS_HPP DateTime.hpp DoubleTime.hpp Exception.hpp
   ParametersReader.hpp Time.hpp Trace.hpp)

+ 30 - 0
src/artis/utils/Trace.cpp

@@ -0,0 +1,30 @@
+/**
+ * @file utils/Trace.cpp
+ * @author See the AUTHORS file
+ */
+
+/*
+ * Copyright (C) 2012-2017 ULCO http://www.univ-littoral.fr
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <artis/utils/Trace.hpp>
+
+namespace artis { namespace utils {
+
+std::map < std::string, int > artis::utils::KernelInfo::elt_dictionary;
+std::vector < std::string > artis::utils::KernelInfo::elt_names;
+
+} }

+ 0 - 7
src/artis/utils/trace.cpp

@@ -1,7 +0,0 @@
-#include "Trace.hpp"
-
-std::map < std::string, int > artis::utils::KernelInfo::elt_dictionary;
-std::vector < std::string > artis::utils::KernelInfo::elt_names;
-
-
-