diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 03:17:04 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 03:20:15 +0300 |
commit | 15a9dd50ae2112d6fe80b833bd05278a9b4f67a7 (patch) | |
tree | 2b67329c34a63071517b1a1fc7abb96756e179bc | |
parent | mingw builds: external definitions for static members (diff) | |
download | winapi-debug-15a9dd50ae2112d6fe80b833bd05278a9b4f67a7.tar.gz winapi-debug-15a9dd50ae2112d6fe80b833bd05278a9b4f67a7.zip |
add test/ to test, for starters, enum_symbols
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | test/CMakeLists.txt | 6 | ||||
-rw-r--r-- | test/lab_rat.cpp | 20 |
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; +} |