| 1 |
Description: Use system libtinyxml instead of embedded copy |
| 2 |
Edit the cmake script to use the system installed libtinyxml instead of |
| 3 |
the (removed in Debian) embedded copy. |
| 4 |
Author: Andreas Bombe <[email protected]> |
| 5 |
--- |
| 6 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 7 |
--- a/CMakeLists.txt |
| 8 |
+++ b/CMakeLists.txt |
| 9 |
@@ -149,6 +149,11 @@ |
| 10 |
SET( EX_PLATFORM_NAME "x86" ) |
| 11 |
endif( CMAKE_SIZEOF_VOID_P EQUAL 8 ) |
| 12 |
|
| 13 |
+find_package(PkgConfig REQUIRED) |
| 14 |
+pkg_check_modules(TIXML REQUIRED tinyxml) |
| 15 |
+include_directories(${TIXML_INCLUDE_DIRS}) |
| 16 |
+SET(OTHER_LIBRARIES ${OTHER_LIBRARIES} ${TIXML_LIBRARIES}) |
| 17 |
+ |
| 18 |
|
| 19 |
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/${EX_PLATFORM_NAME}) |
| 20 |
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_BINARY_DIR}/${EX_PLATFORM_NAME}) |
| 21 |
@@ -395,10 +400,6 @@ |
| 22 |
src/forms/Dialog/AboutDialogBase.cpp |
| 23 |
src/forms/Dialog/AboutDialog.cpp |
| 24 |
external/lodepng/lodepng.cpp |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
external/cubicvr2/math/cubic_math.cpp |
| 30 |
) |
| 31 |
|
| 32 |
@@ -506,8 +507,6 @@ |
| 33 |
src/forms/Dialog/AboutDialogBase.h |
| 34 |
src/forms/Dialog/AboutDialog.h |
| 35 |
external/lodepng/lodepng.h |
| 36 |
|
| 37 |
|
| 38 |
external/cubicvr2/math/aabb.h |
| 39 |
external/cubicvr2/math/cubic_math.h |
| 40 |
external/cubicvr2/math/cubic_types.h |