Rename Clay target in CMakeLists

This allows to build both test suites at the same time
This commit is contained in:
Vicent Marti 2011-09-16 05:39:52 +02:00
parent fe4aa2066d
commit 48e97ed1f0

View File

@ -141,14 +141,14 @@ IF (BUILD_CLAY)
INCLUDE_DIRECTORIES(tests-clay)
FILE(GLOB_RECURSE SRC_TEST tests-clay/*.c)
ADD_EXECUTABLE(libgit2_test ${SRC} ${SRC_TEST} ${SRC_ZLIB})
TARGET_LINK_LIBRARIES(libgit2_test ${CMAKE_THREAD_LIBS_INIT})
ADD_EXECUTABLE(libgit2_clay ${SRC} ${SRC_TEST} ${SRC_ZLIB})
TARGET_LINK_LIBRARIES(libgit2_clay ${CMAKE_THREAD_LIBS_INIT})
IF (WIN32)
TARGET_LINK_LIBRARIES(libgit2_test ws2_32)
TARGET_LINK_LIBRARIES(libgit2_clay ws2_32)
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
TARGET_LINK_LIBRARIES(libgit2_test socket nsl)
TARGET_LINK_LIBRARIES(libgit2_clay socket nsl)
ENDIF ()
ENABLE_TESTING()
ADD_TEST(libgit2_test libgit2_test)
ADD_TEST(libgit2_clay libgit2_clay)
ENDIF ()