Add CMakeLists.txt for runtime
authorHanjoung Lee <hanjoung.lee@samsung.com>
Tue, 20 Mar 2018 11:27:43 +0000 (20:27 +0900)
committer최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 <hk0110.choi@samsung.com>
Tue, 20 Mar 2018 12:02:44 +0000 (21:02 +0900)
And this adds a "Hello World" executable for dummy build.

CMakeLists.txt
src/CMakeLists.txt [new file with mode: 0644]
src/runtime/CMakeLists.txt [new file with mode: 0644]
src/runtime/ref/CMakeLists.txt [new file with mode: 0644]
src/runtime/ref/main.cc [new file with mode: 0644]
src/runtime/ref/main.h [new file with mode: 0644]

index 1b22552..88019ea 100644 (file)
@@ -68,3 +68,4 @@ endforeach()
 
 add_subdirectory(externals)
 add_subdirectory(tools)
+add_subdirectory(src)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644 (file)
index 0000000..4c5f637
--- /dev/null
@@ -0,0 +1 @@
+add_subdirectory(runtime)
diff --git a/src/runtime/CMakeLists.txt b/src/runtime/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1d98c0e
--- /dev/null
@@ -0,0 +1 @@
+add_subdirectory(ref)
diff --git a/src/runtime/ref/CMakeLists.txt b/src/runtime/ref/CMakeLists.txt
new file mode 100644 (file)
index 0000000..27eb2b7
--- /dev/null
@@ -0,0 +1,5 @@
+file(GLOB SRCS *.cc)
+file(GLOB HDRS *.h)
+
+add_executable(runtime_run ${SRCS} ${HDRS})
+target_include_directories(runtime_run PRIVATE .)
diff --git a/src/runtime/ref/main.cc b/src/runtime/ref/main.cc
new file mode 100644 (file)
index 0000000..b73039c
--- /dev/null
@@ -0,0 +1,8 @@
+#include <iostream>
+#include "main.h"
+
+int main()
+{
+  std::cout << HELLO_RUNTIME << std::endl;
+  return 0;
+}
diff --git a/src/runtime/ref/main.h b/src/runtime/ref/main.h
new file mode 100644 (file)
index 0000000..58020d8
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef __RUNTIME_MAIN_H__
+#define __RUNTIME_MAIN_H__
+
+const char *HELLO_RUNTIME = "Hello Runtime!";
+
+#endif // __RUNTIME_MAIN_H__