diff options
Diffstat (limited to '')
-rw-r--r-- | test/CMakeLists.txt | 6 | ||||
-rw-r--r-- | test/lab_rat.cpp | 20 |
2 files changed, 26 insertions, 0 deletions
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; +} |