aboutsummaryrefslogtreecommitdiff
path: root/tests/poppler/cmake/modules/PopplerDefaults.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'tests/poppler/cmake/modules/PopplerDefaults.cmake')
-rw-r--r--tests/poppler/cmake/modules/PopplerDefaults.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/poppler/cmake/modules/PopplerDefaults.cmake b/tests/poppler/cmake/modules/PopplerDefaults.cmake
new file mode 100644
index 00000000..b0374cf9
--- /dev/null
+++ b/tests/poppler/cmake/modules/PopplerDefaults.cmake
@@ -0,0 +1,17 @@
+# enable the testing facilities
+enable_testing()
+
+# put the include directories of the sources before other include paths
+# (eg, system includes)
+set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
+
+# colored output
+set(CMAKE_COLOR_MAKEFILE ON)
+
+# CMake policy #0002: we can have multiple targets with the same name (for the unit tests)
+cmake_policy(SET CMP0002 OLD)
+# CMake policy #0011 (>= 2.6.3): make policy changes (as done here) taking effect for all the tree
+if(POLICY CMP0011)
+ cmake_policy(SET CMP0011 OLD)
+endif(POLICY CMP0011)
+