From: asl Date: Wed, 20 Sep 2017 07:28:21 +0000 (+0300) Subject: correction of cmake for debug/release on windows X-Git-Tag: v2.1~66^2~35 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7de2904679481e293a04bd1d48c688d9cff56afe;p=modules%2Fhydro.git correction of cmake for debug/release on windows --- diff --git a/src/HYDRO_tests/CMakeLists.txt b/src/HYDRO_tests/CMakeLists.txt index 0160bb91..20f22d15 100644 --- a/src/HYDRO_tests/CMakeLists.txt +++ b/src/HYDRO_tests/CMakeLists.txt @@ -83,14 +83,22 @@ SET( CAS_LIBRARIES TKernel TKLCAF TKCAF TKCDF TKMath TKG2d TKG3d TKBRep TKGeomBa 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()