CMAKE_POLICY(SET CMP0005 OLD)

ADD_DEFINITIONS(-DATOM_SPACE_DUMP_FILE=\\"${CMAKE_CURRENT_SOURCE_DIR}/atomSpace.xml\\")

ADD_CXXTEST(LearnMessageUTest)
TARGET_LINK_LIBRARIES(LearnMessageUTest 
    MessagingSystem
    LearningServerMessages
    util
    Filter
    AtomSpaceExtensions
    ${PROJECT_LIBRARIES}
)

IF(WIN32)
    TARGET_LINK_LIBRARIES(LearnMessageUTest winmm)
ENDIF(WIN32)

ADD_CXXTEST(RewardMessageUTest)
TARGET_LINK_LIBRARIES(RewardMessageUTest 
	MessagingSystem
	LearningServerMessages
	AtomSpaceExtensions
        SpaceMap
	PetComboVocabulary
)

IF(WIN32)
    TARGET_LINK_LIBRARIES(RewardMessageUTest winmm)
ENDIF(WIN32)

ADD_CXXTEST(SchemaMessageUTest)
TARGET_LINK_LIBRARIES(SchemaMessageUTest 
	MessagingSystem
	LearningServerMessages
	AtomSpaceExtensions
        SpaceMap
	PetComboVocabulary
        util
        comboreduct
)

IF(WIN32)
    TARGET_LINK_LIBRARIES(SchemaMessageUTest winmm)
ENDIF(WIN32)

CMAKE_POLICY(SET CMP0005 OLD)

ADD_DEFINITIONS(-DATOM_SPACE_DUMP_FILE=\\"${CMAKE_CURRENT_SOURCE_DIR}/atomSpace.xml\\")

ADD_CXXTEST(LearnMessageUTest)
TARGET_LINK_LIBRARIES(LearnMessageUTest 
    MessagingSystem
    LearningServerMessages
    util
    Filter
    ${PROJECT_LIBRARIES}
)

IF(WIN32)
    TARGET_LINK_LIBRARIES(LearnMessageUTest winmm)
ENDIF(WIN32)

ADD_CXXTEST(RewardMessageUTest)
TARGET_LINK_LIBRARIES(RewardMessageUTest 
    MessagingSystem
    LearningServerMessages
    SpaceMap
    PetComboVocabulary
)

IF(WIN32)
    TARGET_LINK_LIBRARIES(RewardMessageUTest winmm)
ENDIF(WIN32)

ADD_CXXTEST(SchemaMessageUTest)
TARGET_LINK_LIBRARIES(SchemaMessageUTest 
    MessagingSystem
    LearningServerMessages
    SpaceMap
    PetComboVocabulary
    util
    comboreduct
)

IF(WIN32)
    TARGET_LINK_LIBRARIES(SchemaMessageUTest winmm)
ENDIF(WIN32)

Remove unnecessary linking that results in double free on module unload
Remove unnecessary linking that results in double free on module unload