summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeCommands/target_compile_definitions/main.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-01-07 23:34:41 (GMT)
committerBrad King <brad.king@kitware.com>2013-01-10 14:46:58 (GMT)
commitfc61a7a746c3c899d42ccff3014686365c36ee11 (patch)
tree1a8079e72ae1d66b8f73303fb12f73e696aa1e86 /Tests/CMakeCommands/target_compile_definitions/main.cpp
parent8a37ebec784cefe4f04cb8897c23a014c3930052 (diff)
downloadCMake-fc61a7a746c3c899d42ccff3014686365c36ee11.zip
CMake-fc61a7a746c3c899d42ccff3014686365c36ee11.tar.gz
CMake-fc61a7a746c3c899d42ccff3014686365c36ee11.tar.bz2
Add the target_compile_definitions command.
This is a convenience API to populate the corresponding properties.
Diffstat (limited to 'Tests/CMakeCommands/target_compile_definitions/main.cpp')
-rw-r--r--Tests/CMakeCommands/target_compile_definitions/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_compile_definitions/main.cpp b/Tests/CMakeCommands/target_compile_definitions/main.cpp
new file mode 100644
index 0000000..addb33c
--- /dev/null
+++ b/Tests/CMakeCommands/target_compile_definitions/main.cpp
@@ -0,0 +1,14 @@
+
+#ifndef MY_PRIVATE_DEFINE
+#error Expected MY_PRIVATE_DEFINE
+#endif
+
+#ifndef MY_PUBLIC_DEFINE
+#error Expected MY_PUBLIC_DEFINE
+#endif
+
+#ifdef MY_INTERFACE_DEFINE
+#error Unexpected MY_INTERFACE_DEFINE
+#endif
+
+int main() { return 0; }