]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
correction of cmake for debug/release on windows
authorasl <asl@opencascade.com>
Wed, 20 Sep 2017 07:28:21 +0000 (10:28 +0300)
committerasl <asl@opencascade.com>
Wed, 20 Sep 2017 07:28:21 +0000 (10:28 +0300)
src/HYDRO_tests/CMakeLists.txt

index 0160bb91429a59cb443975d373de291416adcca0..20f22d15f8a23d3f468db107e7ca36c4525efd31 100644 (file)
@@ -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()