Skip to content

Commit

Permalink
Rename test, fixed cmake warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
xantares committed Nov 14, 2014
1 parent 1cd7e74 commit 0b2c22b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Expand Up @@ -10,8 +10,8 @@ include(GNUInstallDirs)
################################
# set lib version here

set(GENERIC_LIB_VERSION "2.2.0")
set(GENERIC_LIB_SOVERSION "2")
set(GENERIC_LIB_VERSION "2.2.0")
set(GENERIC_LIB_SOVERSION "2")


################################
Expand Down Expand Up @@ -57,10 +57,10 @@ 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)
add_executable(xmltest xmltest.cpp)
add_dependencies(xmltest tinyxml2)
add_dependencies(xmltest ${TARGET_DATA_COPY})
target_link_libraries(xmltest tinyxml2)


if(BUILD_STATIC_LIBS)
Expand All @@ -85,4 +85,4 @@ endforeach()
configure_file(tinyxml2.pc.in tinyxml2.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/tinyxml2.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)

#add_test(test ${SAMPLE_NAME} COMMAND $<TARGET_FILE:${SAMPLE_NAME}>)
#add_test(xmltest ${SAMPLE_NAME} COMMAND $<TARGET_FILE:${SAMPLE_NAME}>)

0 comments on commit 0b2c22b

Please sign in to comment.