From: asl Date: Wed, 14 Oct 2015 08:26:23 +0000 (+0300) Subject: multi-processors compilation X-Git-Tag: v1.5~133 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ba99e35c5dd5c5422b4fc95f3c5a58d3a1276c8c;p=modules%2Fhydro.git multi-processors compilation --- diff --git a/CMake/Common.cmake b/CMake/Common.cmake index ceefd5be..7b4f7d99 100644 --- a/CMake/Common.cmake +++ b/CMake/Common.cmake @@ -6,3 +6,8 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/salome) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/salome) set(CMAKE_INCLUDE_CURRENT_DIR ON) + +IF( MSVC ) + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP" ) + message(STATUS "Added parallel build arguments to CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}") +ENDIF() diff --git a/src/HYDROData/CMakeLists.txt b/src/HYDROData/CMakeLists.txt index 9addb41b..b8a25442 100644 --- a/src/HYDROData/CMakeLists.txt +++ b/src/HYDROData/CMakeLists.txt @@ -1,4 +1,4 @@ -#include(../../CMake/Common.cmake) +include(../../CMake/Common.cmake) set(PROJECT_HEADERS HYDROData.h @@ -129,8 +129,6 @@ add_definitions( include_directories( ${CAS_INCLUDE_DIRS} ${QT_INCLUDES} - ${CMAKE_CURRENT_SOURCE_DIR} -# ${GUI_ROOT_DIR}/include/salome ${GUI_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/../shapelib ) diff --git a/src/HYDROGUI/CMakeLists.txt b/src/HYDROGUI/CMakeLists.txt index 769496f8..ae5ef832 100644 --- a/src/HYDROGUI/CMakeLists.txt +++ b/src/HYDROGUI/CMakeLists.txt @@ -1,4 +1,4 @@ -#include(../../CMake/Common.cmake) +include(../../CMake/Common.cmake) include(../../CMake/UseQT4EXT.cmake) set(PROJECT_HEADERS @@ -289,11 +289,8 @@ add_definitions( include_directories( ${CAS_INCLUDE_DIRS} ${QT_INCLUDES} -# ${GUI_ROOT_DIR}/include/salome ${GUI_INCLUDE_DIRS} -# ${GEOM_ROOT_DIR}/include/salome ${GEOM_INCLUDE_DIRS} - ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../shapelib ${CMAKE_CURRENT_SOURCE_DIR}/../HYDROData ${VTK_INCLUDE_DIRS} diff --git a/src/HYDROPy/CMakeLists.txt b/src/HYDROPy/CMakeLists.txt index 0a74efee..d91a5834 100644 --- a/src/HYDROPy/CMakeLists.txt +++ b/src/HYDROPy/CMakeLists.txt @@ -1,4 +1,4 @@ - +include(../../CMake/Common.cmake) include(../../CMake/UsePyQt4EXT.cmake) # --- options --- diff --git a/src/HYDRO_tests/CMakeLists.txt b/src/HYDRO_tests/CMakeLists.txt index 9437e762..cdd73573 100644 --- a/src/HYDRO_tests/CMakeLists.txt +++ b/src/HYDRO_tests/CMakeLists.txt @@ -1,7 +1,7 @@ +include(../../CMake/Common.cmake) include(ExternalFiles.cmake) set(PROJECT_HEADERS - operators.h test_HYDROData_Bathymetry.h test_HYDROData_Document.h test_HYDROData_Entity.h @@ -65,7 +65,6 @@ include_directories( ${QT_INCLUDES} ${CPPUNIT_INCLUDES} ${GUI_INCLUDES} - ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../HYDROData ${CMAKE_CURRENT_SOURCE_DIR}/../HYDROGUI ${CMAKE_CURRENT_SOURCE_DIR}/../shapelib diff --git a/src/HYDRO_tests/operators.h b/src/HYDRO_tests/operators.h deleted file mode 100644 index ebc16d7e..00000000 --- a/src/HYDRO_tests/operators.h +++ /dev/null @@ -1,5 +0,0 @@ - -#pragma once - -std::ostream& operator<<( std::ostream& theStream, const QString& theText ); -std::ostream& operator<<( std::ostream& theStream, const QColor& theText ); \ No newline at end of file diff --git a/src/shapelib/CMakeLists.txt b/src/shapelib/CMakeLists.txt index d286d2cc..419c3c4c 100644 --- a/src/shapelib/CMakeLists.txt +++ b/src/shapelib/CMakeLists.txt @@ -24,4 +24,3 @@ INSTALL(TARGETS shapelib EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_ set(PROJECT_LIBRARIES shapelib) -#include(../../CMake/CommonInstall.cmake)