aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--test/CMakeLists.txt6
-rw-r--r--test/lab_rat.cpp20
3 files changed, 27 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ef02ccf..4c99eda 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,6 +27,7 @@ if(MSVC_VERSION EQUAL 1900)
target_compile_options(pdb_repo PUBLIC /wd4091)
endif()
+add_subdirectory(test)
add_subdirectory(utils)
install(FILES LICENSE.txt DESTINATION share)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
new file mode 100644
index 0000000..0cd4c1a
--- /dev/null
+++ b/test/CMakeLists.txt
@@ -0,0 +1,6 @@
+add_executable(lab_rat lab_rat.cpp)
+
+install(TARGETS lab_rat RUNTIME DESTINATION bin)
+if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+ install(FILES "$<TARGET_PDB_FILE:lab_rat>" DESTINATION bin OPTIONAL)
+endif()
diff --git a/test/lab_rat.cpp b/test/lab_rat.cpp
new file mode 100644
index 0000000..24f75c6
--- /dev/null
+++ b/test/lab_rat.cpp
@@ -0,0 +1,20 @@
+#include <iostream>
+
+void baz() {
+ std::cout << "baz\n";
+}
+
+void bar() {
+ std::cout << "bar\n";
+ baz();
+}
+
+void foo() {
+ std::cout << "foo\n";
+ bar();
+}
+
+int main() {
+ foo();
+ return 0;
+}