SET(libmocktesting_la_SOURCES
 VisitableMockObject_test.cpp
 Formatter_test.cpp Throwable_test.cpp ThrowableList_test.cpp ExpectationCounter_test.cpp
 ExpectationCounterRange_test.cpp ExpectationMap_test.cpp ExpectationList_test.cpp
 ConstraintList_test.cpp     ExpectationSet_test.cpp ExpectationConglomeration_test.cpp
 ExpectationSegment_test.cpp     ExpectationValue_test.cpp ExpectationBoundary_test.cpp
 Verifiable_test.cpp Exception_test.cpp    mockpp_test.cpp ReturnObjectList_test.cpp
 VisitableMockObject_template_test.cpp     Assert_test.cpp AssertMo_test.cpp MockObject_test.cpp
 VisitableMockObject_1_test.cpp    VisitableMockObject_2_test.cpp VisitableMockObject_3_test.cpp
 VisitableMockObject_4_test.cpp    VisitableMockObject_5_test.cpp VisitableMockObject_void_test.cpp
 VisitableMockObject_1_void_test.cpp     VisitableMockObject_2_void_test.cpp
 VisitableMockObject_5_void_test.cpp VerifyingTestCase_test.cpp classes_ABCDE.cpp
 VerifyingTestCaller_test.cpp TrackingCounter_test.cpp MixedMockObject_5_test.cpp TimeServer_test.cpp
 VisitableMockMethod_2_test.cpp VisitableMockMethod_1_test.cpp VisitableMockMethod_test.cpp
 ResponseVector_test.cpp NoException_test.cpp
 And_test.cpp IsAnything_test.cpp IsCloseTo_test.cpp
 IsEqual_test.cpp IsGreaterOrEqual_test.cpp IsGreaterThan_test.cpp IsInstanceOf_test.cpp
 IsLessOrEqual_test.cpp IsLessThan_test.cpp IsNot_test.cpp IsNothing_test.cpp IsSame_test.cpp
 Or_test.cpp ReturnStub_test.cpp RandomStub_test.cpp ReturnObjectListStub_test.cpp ReturnAndTriggerStub_test.cpp
 StringContains_test.cpp StubSequence_test.cpp
 TestFailureStub_test.cpp ThrowStub_test.cpp VoidStub_test.cpp ChainingMockObjectSupport_test.cpp
 CustomStub_test.cpp DefaultResultStub_test.cpp Invocation_test.cpp
 AnyArgumentsMatcher_test.cpp InvokedRecorder_test.cpp InvokeAtLeastOnceMatcher_test.cpp
 InvokeOnceMatcher_test.cpp InvokeCountMatcher_test.cpp InvokedAfterMatcher_test.cpp
 TestFailureMatcher_test.cpp NoArgumentsMatcher_test.cpp ArgumentsMatcher_test.cpp
 ConstraintSet_test.cpp ArgumentsMatchBuilder_test.cpp InvocationMockerBuilder_test.cpp
 AbstractDynamicChainingMock_test.cpp AbstractInvocationDispatcher_test.cpp ChainingMockBuilder_test.cpp
 CoreMock_test.cpp DynamicChainingMockError_test.cpp FIFOInvocationDispatcher_test.cpp
 InvocationMocker_test.cpp LIFOInvocationDispatcher_test.cpp InvokeAtMostMatcher_test.cpp
 InvokedBeforeMatcher_test.cpp StubBuilder_test.cpp MatchBuilder_test.cpp
 InvokeAtLeastMatcher_test.cpp ChainableMockObject_1_test.cpp
 ChainableMockObject_1_void_test.cpp ChainableMockObject_2_test.cpp ChainableMockObject_2_void_test.cpp
 ChainableMockObject_3_test.cpp ChainableMockObject_3_void_test.cpp ChainableMockObject_4_test.cpp
 ChainableMockObject_4_void_test.cpp ChainableMockObject_5_test.cpp ChainableMockObject_5_void_test.cpp
 ChainableMockObject_test.cpp ChainableMockObject_void_test.cpp TypelessStubSequence_test.cpp
 StringEndsWith_test.cpp StringStartsWith_test.cpp UnlimitedMatcher_test.cpp mockpp_pti_test.cpp
 OutBound_test.cpp TriggeredOutbound_test.cpp ChainableMockObjectPolymorphism_test.cpp
 ChainableMockMethod_test.cpp ChainableMockMethod_1_test.cpp ChainableMockMethod_2_test.cpp
 ReturnAndCallStub_test.cpp
)

#ADD_LIBRARY(mockpp_test_lib STATIC ${libmocktesting_la_SOURCES})
#ctest_configure()
#ctest_coverage()
#CTEST_MEMCHECK()
#CTEST_SUBMIT()

########### next target ###############

SET(mock_test_SRCS
  mock_test.cpp
)

ADD_EXECUTABLE(mock_test ${mock_test_SRCS} ${libmocktesting_la_SOURCES})
ADD_TEST(console mock_test)
TARGET_LINK_LIBRARIES(mock_test mockpp_cxxtest mockpp mockpp_production stdc++ )

#########next target ###############

if(UNIX)

SET(x11_app_SRCS
  mock_test_x11.cpp
)

ADD_EXECUTABLE(x11_app ${x11_app_SRCS} ${libmocktesting_la_SOURCES})
ADD_TEST(x11     x11_app)
TARGET_LINK_LIBRARIES(x11_app mockpp_cxxtest mockpp mockpp_production stdc++ X11)

endif(UNIX)

########### next target ###############

if(WIN32)

SET(win32_app_SRCS
  mock_test_win32.cpp
)

ADD_EXECUTABLE(win32_app ${win32_app_SRCS})
ADD_TEST(win32   win32_app)
TARGET_LINK_LIBRARIES(win32_app  ${mockpp_test_lib} )

endif(WIN32)
