30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -51,26 +51,12 @@ if(BUILD_STATIC_LIBS)
|
|
add_library(tinyxml2static STATIC tinyxml2.cpp tinyxml2.h)
|
|
set_target_properties(tinyxml2static PROPERTIES OUTPUT_NAME tinyxml2)
|
|
endif(BUILD_STATIC_LIBS)
|
|
-add_library(tinyxml2 SHARED tinyxml2.cpp tinyxml2.h)
|
|
-set_target_properties(tinyxml2 PROPERTIES
|
|
- 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)
|
|
-
|
|
|
|
if(BUILD_STATIC_LIBS)
|
|
- install(TARGETS tinyxml2 tinyxml2static
|
|
+ install(TARGETS tinyxml2static
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
-else(BUILD_STATIC_LIBS)
|
|
- install(TARGETS tinyxml2
|
|
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
endif(BUILD_STATIC_LIBS)
|
|
install(FILES tinyxml2.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
|
|