add_subdirectory(tests)

## GTLTest library ##

if(GTLTEST_THREAD_SUPPORT)
  set(GTLTest_Thread_SRCS Thread.cpp)
  set(GTLTest_Thread_LIBS pthread)
endif(GTLTEST_THREAD_SUPPORT)

set(GTLTest_SRCS
  Suite.cpp
  Case.cpp
  Result.cpp
  ${GTLTest_Thread_SRCS} )

add_library(GTLTest SHARED ${GTLTest_SRCS} )
target_link_libraries(GTLTest ${GTLTest_Thread_LIBS} )

# Set the ABI version of the library
set_target_properties(GTLTest PROPERTIES VERSION ${OPENGTL_LIB_VERSION} SOVERSION ${OPENGTL_LIB_SOVERSION} )

