[med-svn] [foomed] 01/02: Imported Upstream version 01

Corentin Desfarges corentin-guest at moszumanska.debian.org
Thu Feb 19 10:32:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

corentin-guest pushed a commit to branch master
in repository foomed.

commit cc375ba949744451e088afddf1c4db244b3c2cb1
Author: corentin <corentin at debian>
Date:   Thu Feb 19 11:26:06 2015 +0100

    Imported Upstream version 01
---
 CMakeLists.txt     | 9 +++++++++
 bin/CMakeLists.txt | 5 +++++
 bin/exec.cpp       | 7 +++++++
 lib/CMakeLists.txt | 9 +++++++++
 lib/lib.cpp        | 5 +++++
 lib/lib.hpp        | 1 +
 6 files changed, 36 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..df1af7b
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,9 @@
+cmake_minimum_required (VERSION 2.8.11)
+
+project (MAIN)
+
+set( CMAKE_INSTALL_PREFIX /usr )
+
+
+add_subdirectory( lib )
+add_subdirectory( bin )
diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt
new file mode 100644
index 0000000..779ad0f
--- /dev/null
+++ b/bin/CMakeLists.txt
@@ -0,0 +1,5 @@
+add_executable(myexec exec.cpp)
+
+target_link_libraries(myexec LINK_PUBLIC mylib)
+
+INSTALL( TARGETS myexec RUNTIME DESTINATION bin )
diff --git a/bin/exec.cpp b/bin/exec.cpp
new file mode 100644
index 0000000..83ba5a4
--- /dev/null
+++ b/bin/exec.cpp
@@ -0,0 +1,7 @@
+#include <iostream>
+#include "lib.hpp"
+
+int main(){
+	std::cout << somme(10,2) << std::endl;
+	return 0;
+}
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
new file mode 100644
index 0000000..df1af7b
--- /dev/null
+++ b/lib/CMakeLists.txt
@@ -0,0 +1,9 @@
+cmake_minimum_required (VERSION 2.8.11)
+
+project (MAIN)
+
+set( CMAKE_INSTALL_PREFIX /usr )
+
+
+add_subdirectory( lib )
+add_subdirectory( bin )
diff --git a/lib/lib.cpp b/lib/lib.cpp
new file mode 100644
index 0000000..729e0d8
--- /dev/null
+++ b/lib/lib.cpp
@@ -0,0 +1,5 @@
+#include "lib.hpp"
+
+int somme(int a, int b){
+	return a+b;
+}
diff --git a/lib/lib.hpp b/lib/lib.hpp
new file mode 100644
index 0000000..fa797a9
--- /dev/null
+++ b/lib/lib.hpp
@@ -0,0 +1 @@
+int somme(int a, int b);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/foomed.git



More information about the debian-med-commit mailing list