link_directories( $ENV{QT_ROOT_DIR}/lib )
IF( ${WIN32} )
- SET( QT_LIBRARIES Qt5Core Qt5Gui Qt5Test )
+ IF( CMAKE_BUILD_TYPE MATCHES Debug )
+ SET( QT_LIBRARIES Qt5Cored Qt5Guid Qt5Testd )
+ ELSE()
+ SET( QT_LIBRARIES Qt5Core Qt5Gui Qt5Test )
+ ENDIF()
ELSE()
SET( QT_LIBRARIES QtCore QtGui QtTest )
ENDIF()
link_directories( $ENV{CPPUNIT_ROOT_DIR}/lib )
IF( ${WIN32} )
- SET( CPPUNIT_LIBRARIES cppunit )
+ IF( CMAKE_BUILD_TYPE MATCHES Debug )
+ SET( CPPUNIT_LIBRARIES cppunitd )
+ ELSE()
+ SET( CPPUNIT_LIBRARIES cppunit )
+ ENDIF()
ELSE()
SET( CPPUNIT_LIBRARIES cppunit )
ENDIF()