test cases/cmake/8 custom command/subprojects/cmMod/macro_name.cpp
raw| 1 | #include <iostream> |
| 2 | #include <fstream> |
| 3 | #include <chrono> |
| 4 | #include <thread> |
| 5 | |
| 6 | using namespace std; |
| 7 | |
| 8 | #ifdef TEST_CMD_INCLUDE |
| 9 | #if CPY_INC_WAS_INCLUDED != 1 |
| 10 | #error "cpyInc.hpp was not included" |
| 11 | #endif |
| 12 | #endif |
| 13 | |
| 14 | int main() { |
| 15 | this_thread::sleep_for(chrono::seconds(1)); |
| 16 | ofstream out1("macro_name.txt"); |
| 17 | out1 << "FOO"; |
| 18 | |
| 19 | return 0; |
| 20 | } |