From ba99e35c5dd5c5422b4fc95f3c5a58d3a1276c8c Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 14 Oct 2015 11:26:23 +0300 Subject: [PATCH] multi-processors compilation --- CMake/Common.cmake | 5 +++++ src/HYDROData/CMakeLists.txt | 4 +--- src/HYDROGUI/CMakeLists.txt | 5 +---- src/HYDROPy/CMakeLists.txt | 2 +- src/HYDRO_tests/CMakeLists.txt | 3 +-- src/HYDRO_tests/operators.h | 5 ----- src/shapelib/CMakeLists.txt | 1 - 7 files changed, 9 insertions(+), 16 deletions(-) delete mode 100644 src/HYDRO_tests/operators.h 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) -- 2.39.2