mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 20:24:35 +03:00
18 lines
310 B
C++
18 lines
310 B
C++
#include <iostream>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
std::cout << "Hello Compile Flags!" << std::endl;
|
|
|
|
// only print if compile flag set
|
|
#ifdef EX2
|
|
std::cout << "Hello Compile Flag EX2!" << std::endl;
|
|
#endif
|
|
|
|
#ifdef EX3
|
|
std::cout << "Hello Compile Flag EX3!" << std::endl;
|
|
#endif
|
|
|
|
return 0;
|
|
}
|