Просмотр исходного кода

Added new directory structure for examples, need to port others to this style.

master
Trevor Irons 8 лет назад
Родитель
Сommit
5bf708a8ab
3 измененных файлов: 44 добавлений и 0 удалений
  1. 9
    0
      examples/CMakeLists.txt
  2. 6
    0
      examples/LinearMag/CMakeLists.txt
  3. 29
    0
      examples/LinearMag/Sphere.cpp

+ 9
- 0
examples/CMakeLists.txt Просмотреть файл

@@ -22,6 +22,15 @@ target_link_libraries( setupGravSphere  "lemmacore" "fem4ellipticpde")
22 22
 add_executable( ResampleWithDataset ResampleWithDataset.cpp  )
23 23
 target_link_libraries( ResampleWithDataset  "lemmacore" "fem4ellipticpde")
24 24
 
25
+#add_executable( LinearMag_Sphere LinearMag/Sphere.cpp )
26
+#target_link_libraries( LinearMag_Sphere "lemmacore" "fem4ellipticpde" )
27
+add_subdirectory(LinearMag)
28
+install(DIRECTORY "LinearMag"
29
+	DESTINATION "${CMAKE_INSTALL_PREFIX}/share/FEM4EllipticPDE/"
30
+	PATTERN "*.cpp"           EXCLUDE
31
+	PATTERN "CMakeLists.txt"  EXCLUDE
32
+)
33
+
25 34
 #INSTALL_TARGETS( "${CMAKE_INSTALL_PREFIX}/share/FEM4EllipticPDE/"
26 35
 INSTALL_TARGETS( "/share/FEM4EllipticPDE/"
27 36
 	FEM4EllipticPDE_bhmag FEM4EllipticPDE merge VTKDC VTKEdgeG VTKEdgeGsphere ResampleWithDataset

+ 6
- 0
examples/LinearMag/CMakeLists.txt Просмотреть файл

@@ -0,0 +1,6 @@
1
+add_executable( Sphere Sphere.cpp )
2
+target_link_libraries( Sphere "lemmacore" "fem4ellipticpde" )
3
+INSTALL_TARGETS( "/share/FEM4EllipticPDE/LinearMag" 
4
+	Sphere
5
+)
6
+

+ 29
- 0
examples/LinearMag/Sphere.cpp Просмотреть файл

@@ -0,0 +1,29 @@
1
+/* This file is part of Lemma, a geophysical modelling and inversion API.
2
+ * More information is available at http://lemmasoftware.org
3
+ */
4
+
5
+/* This Source Code Form is subject to the terms of the Mozilla Public
6
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
7
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
+ */
9
+
10
+/**
11
+ * @file
12
+ * @date      03/21/2016 09:59:10 PM
13
+ * @version   $Id$
14
+ * @author    Trevor Irons (ti)
15
+ * @email     tirons@egi.utah.edu
16
+ * @copyright Copyright (c) 2016, University of Utah
17
+ * @copyright Copyright (c) 2016, Trevor Irons & Lemma Software, LLC
18
+ */
19
+
20
+#include "Lemma"
21
+
22
+using namespace Lemma;
23
+
24
+int main() {
25
+
26
+    std::cout << "Test of LinearMag class\n";
27
+
28
+}
29
+

Загрузка…
Отмена
Сохранить