From: spo Date: Thu, 26 May 2016 13:55:03 +0000 (+0300) Subject: Improce CMake files X-Git-Tag: V_2.4.0~91^2~91 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=777b3d5c542a2edd5abb655560a576adfa2c968b;p=modules%2Fshaper.git Improce CMake files --- diff --git a/CMakeCommon/GTest.cmake b/CMakeCommon/GTest.cmake index 448ba617d..13c245511 100644 --- a/CMakeCommon/GTest.cmake +++ b/CMakeCommon/GTest.cmake @@ -16,9 +16,9 @@ include(FindGTest) add_definitions(-DGTEST_LANG_CXX11=0) include_directories( - $ENV{GTEST_ROOT}/googletest/include - $ENV{GTEST_ROOT}/googlemock/include - ) + $ENV{GTEST_ROOT}/googletest/include + $ENV{GTEST_ROOT}/googlemock/include +) set(GTEST_LIBRARY $ENV{GTEST_ROOT}/googlemock/make/gmock_main.a) \ No newline at end of file diff --git a/src/ConstructionAPI/CMakeLists.txt b/src/ConstructionAPI/CMakeLists.txt index 81ada7e09..ae9364b45 100644 --- a/src/ConstructionAPI/CMakeLists.txt +++ b/src/ConstructionAPI/CMakeLists.txt @@ -17,6 +17,7 @@ SET(PROJECT_LIBRARIES ) INCLUDE_DIRECTORIES( + ${PROJECT_SOURCE_DIR}/src/Events ${PROJECT_SOURCE_DIR}/src/ModelAPI ${PROJECT_SOURCE_DIR}/src/ModelHighAPI ) diff --git a/src/ConstructionAPI/Test/CMakeLists.txt b/src/ConstructionAPI/Test/CMakeLists.txt index 2df95c8c2..b04b43d26 100644 --- a/src/ConstructionAPI/Test/CMakeLists.txt +++ b/src/ConstructionAPI/Test/CMakeLists.txt @@ -2,18 +2,15 @@ include(GTest) +set(PROJECT_SOURCES + TestPoint.cpp +) + include_directories( - ${PROJECT_SOURCE_DIR}/src/Events - ${PROJECT_SOURCE_DIR}/src/ModelAPI - ${PROJECT_SOURCE_DIR}/src/ModelHighAPI ${PROJECT_SOURCE_DIR}/src/ConstructionAPI ${PROJECT_SOURCE_DIR}/src/ModelHighAPI/Mock ) -set(PROJECT_SOURCES - TestPoint.cpp -) - set(PROJECT_LIBRARIES ModelAPI ModelHighAPI