summaryrefslogtreecommitdiffstats
path: root/Tests/Simple
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Simple')
-rw-r--r--Tests/Simple/CMakeLists.txt2
-rw-r--r--Tests/Simple/simple.cxx2
-rw-r--r--Tests/Simple/simpleLib.cxx3
3 files changed, 7 insertions, 0 deletions
diff --git a/Tests/Simple/CMakeLists.txt b/Tests/Simple/CMakeLists.txt
index cb2452b..d42728d 100644
--- a/Tests/Simple/CMakeLists.txt
+++ b/Tests/Simple/CMakeLists.txt
@@ -1,3 +1,5 @@
# a simple test case
PROJECT (simple)
ADD_EXECUTABLE (simple simple.cxx)
+ADD_LIBRARY(simpleLib STATIC simpleLib.cxx)
+TARGET_LINK_LIBRARIES(simple simpleLib)
diff --git a/Tests/Simple/simple.cxx b/Tests/Simple/simple.cxx
index 1482f27..ef26e79 100644
--- a/Tests/Simple/simple.cxx
+++ b/Tests/Simple/simple.cxx
@@ -1,4 +1,6 @@
+extern void simpleLib();
int main ()
{
+ simpleLib();
return 0;
}
diff --git a/Tests/Simple/simpleLib.cxx b/Tests/Simple/simpleLib.cxx
new file mode 100644
index 0000000..281d888
--- /dev/null
+++ b/Tests/Simple/simpleLib.cxx
@@ -0,0 +1,3 @@
+void simpleLib()
+{
+}