Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
logandk committed Apr 2, 2013
1 parent 303db0d commit a4e527f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tests/CMakeLists.txt
Expand Up @@ -25,13 +25,13 @@ link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../vendor/iconv/lib)

FILE(GLOB test_files "test_*.cpp")
add_executable(tests ${test_files})
target_link_libraries(tests gtest gtest_main restful_mapper yajl curl)
target_link_libraries(tests gtest gtest_main restful_mapper yajl)

if (WIN32)
target_link_libraries(tests ws2_32 iconv charset)
target_link_libraries(tests ws2_32 iconv charset libcurl)
endif()

if (UNIX)
target_link_libraries(tests idn pthread)
target_link_libraries(tests idn pthread curl)
endif()

1 change: 1 addition & 0 deletions tests/test_query.cpp
Expand Up @@ -4,6 +4,7 @@
#include <gtest/gtest.h>
#include <restful_mapper/query.h>
#include <restful_mapper/internal/iso8601.h>
#include <restful_mapper/internal/utf8.h>

using namespace std;
using namespace restful_mapper;
Expand Down
4 changes: 0 additions & 4 deletions vendor/iconv/patch.cmake
@@ -1,7 +1,3 @@
execute_process(COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt.bak)

execute_process(COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt)
Expand Down

0 comments on commit a4e527f

Please sign in to comment.