From 7de2904679481e293a04bd1d48c688d9cff56afe Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 20 Sep 2017 10:28:21 +0300 Subject: [PATCH] correction of cmake for debug/release on windows --- src/HYDRO_tests/CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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() -- 2.39.2