blob: 01eb2bfd49bd516c605dc892b3e96187d8d512cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- tinyxml2-1.0.1_p20120531/CMakeLists.txt
+++ tinyxml2-1.0.1_p20120531/CMakeLists.txt
@@ -55,10 +55,13 @@
VERSION "${GENERIC_LIB_VERSION}"
SOVERSION "${GENERIC_LIB_SOVERSION}")
-add_executable(test xmltest.cpp)
-add_dependencies(test tinyxml2)
-add_dependencies(test ${TARGET_DATA_COPY})
-target_link_libraries(test tinyxml2)
+set(BUILD_TEST OFF CACHE BOOL "Set to ON to build tests")
+if(BUILD_TEST)
+ add_executable(test xmltest.cpp)
+ add_dependencies(test tinyxml2)
+ add_dependencies(test ${TARGET_DATA_COPY})
+ target_link_libraries(test tinyxml2)
+endif(BUILD_TEST)
if(BUILD_STATIC_LIBS)
|