summaryrefslogtreecommitdiff
path: root/ext/Log4Qt/project-config.cmake.in
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2014-07-11 21:06:39 +0200
committerTomasz Sterna <tomek@xiaoka.com>2014-07-11 21:06:39 +0200
commitefb33d6494d88c27c8766553b6a963ddf2654458 (patch)
tree76dd5e56b79191074998c0fb6bf7b81276116a4b /ext/Log4Qt/project-config.cmake.in
parent072da88eee57e5d16f0b75c7b90c8a0bc6a60cb3 (diff)
Included Log4Qt in project
Diffstat (limited to 'ext/Log4Qt/project-config.cmake.in')
-rw-r--r--ext/Log4Qt/project-config.cmake.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/Log4Qt/project-config.cmake.in b/ext/Log4Qt/project-config.cmake.in
new file mode 100644
index 0000000..a75271e
--- /dev/null
+++ b/ext/Log4Qt/project-config.cmake.in
@@ -0,0 +1,11 @@
+get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+
+include(${SELF_DIR}/@PROJECT_NAME@-targets.cmake)
+
+string(TOUPPER @PROJECT_NAME@ PROJECT_TO_UPPER)
+
+add_definitions(-D${PROJECT_TO_UPPER})
+if (NOT @LOG4QT_BUILD_STATIC@)
+ add_definitions(-D${PROJECT_TO_UPPER}_IMPORTS)
+endif()
+set(${PROJECT_TO_UPPER}_INCLUDE_DIRS @TARGET_INCLUDE_DIR@)