From fb7ea32701dc7149330cbf65adbb4ea8d8aa12b0 Mon Sep 17 00:00:00 2001
From: Norihiro Watanabe <norihiro.watanabe@ufz.de>
Date: Thu, 27 Feb 2014 16:42:46 +0100
Subject: [PATCH] add NumLib/CMakeLists.txt

---
 CMakeLists.txt        |  1 +
 NumLib/CMakeLists.txt | 26 ++++++++++++++++++++++++++
 Tests/CMakeLists.txt  |  1 +
 3 files changed, 28 insertions(+)
 create mode 100644 NumLib/CMakeLists.txt

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0db9bb04783..85350edf2a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -145,6 +145,7 @@ ADD_SUBDIRECTORY( GeoLib )
 ADD_SUBDIRECTORY( MathLib )
 ADD_SUBDIRECTORY( MeshLib )
 ADD_SUBDIRECTORY( MeshGeoToolsLib )
+ADD_SUBDIRECTORY( NumLib )
 IF( OGS_BUILD_CLI )
 	ADD_SUBDIRECTORY( OGS )
 ENDIF() # OGS_BUILD_CLI
diff --git a/NumLib/CMakeLists.txt b/NumLib/CMakeLists.txt
new file mode 100644
index 00000000000..f501692df46
--- /dev/null
+++ b/NumLib/CMakeLists.txt
@@ -0,0 +1,26 @@
+#Source files grouped by a directory
+GET_SOURCE_FILES(SOURCES_NUMLIB)
+SET ( SOURCES ${SOURCES_NUMLIB})
+
+GET_SOURCE_FILES(SOURCES_FEM Fem)
+SET ( SOURCES ${SOURCES} ${SOURCES_FEM})
+
+INCLUDE_DIRECTORIES (
+	.
+	../BaseLib
+	../MathLib
+	../MeshLib
+)
+
+
+# Create the library
+ADD_LIBRARY( NumLib STATIC ${SOURCES} )
+
+SET_TARGET_PROPERTIES(NumLib PROPERTIES LINKER_LANGUAGE CXX)
+
+TARGET_LINK_LIBRARIES ( NumLib 
+	BaseLib
+	GeoLib
+	MathLib
+)
+
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 499c59f6bfa..bc9ee3bc384 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -49,6 +49,7 @@ TARGET_LINK_LIBRARIES(testrunner
 	MathLib
 	MeshLib
 	MeshGeoToolsLib
+	NumLib
 	OgsLib
 	logog
 	${BOOST_LIBRARIES}
-- 
GitLab