From: Paul RASCLE Date: Fri, 11 Nov 2016 20:43:20 +0000 (+0100) Subject: build HYDROData_tests X-Git-Tag: v1.6~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=79f36794a3fca3f17a068f5756fb43b3c9ca2c1b;p=modules%2Fhydro.git build HYDROData_tests --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d3684df..8196042c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR) PROJECT(SalomeHYDRO C CXX) - -ADD_SUBDIRECTORY (src/HYDRO_tests) - INCLUDE(CMakeDependentOption) # Ensure a proper linker behavior: @@ -193,6 +190,7 @@ ADD_SUBDIRECTORY (src/HYDROData) ADD_SUBDIRECTORY (src/HYDROGUI) ADD_SUBDIRECTORY (src/HYDROPy) ADD_SUBDIRECTORY (src/HYDROTools) +ADD_SUBDIRECTORY (src/HYDRO_tests) IF(SALOME_BUILD_DOC) ADD_SUBDIRECTORY(doc) ENDIF() diff --git a/src/HYDRO_tests/CMakeLists.txt b/src/HYDRO_tests/CMakeLists.txt index d916857c..7ee64231 100644 --- a/src/HYDRO_tests/CMakeLists.txt +++ b/src/HYDRO_tests/CMakeLists.txt @@ -59,8 +59,7 @@ set(PROJECT_SOURCES TestLib_Runner.cxx ) -add_definitions( - -DLIGHT_MODE -DHYDRODATA_STATIC -DHYDROGUI_STATIC ) +add_definitions( -DLIGHT_MODE -DHYDRODATA_STATIC -DHYDROGUI_STATIC ) IF( ${WIN32} ) add_definitions( -DWNT -D__WIN32__ -D__x86__ -D_WIN64 -D_WIN32_WINNT=0x0400 -D__NT__ -D__OSVERSION__=4 ) @@ -96,7 +95,7 @@ ENDIF() link_directories( $ENV{KERNEL_ROOT_DIR}/lib/salome $ENV{GUI_ROOT_DIR}/lib/salome $ENV{GEOM_ROOT_DIR}/lib/salome ) SET( GUI_LIBRARIES ImageComposer qtx suit LightApp CAM OCCViewer ) -SET( GEOM_LIBRARIES CurveCreator GEOMUtils ) +SET( GEOM_LIBRARIES CurveCreator GEOMUtils GEOMUtils ) include_directories( ${CAS_INCLUDES} @@ -113,11 +112,6 @@ include_directories( source_group( "External files" FILES ${EXTERNAL_FILES} ) add_executable( HYDROData_tests ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${EXTERNAL_FILES} ${PROJECT_MOC_HEADERS} ) -target_link_libraries( HYDROData_tests ${GUI_LIBRARIES} ${GEOM_LIBRARIES} ${CAS_LIBRARIES} ${QT_LIBRARIES} ${CPPUNIT_LIBRARIES} shapelib ) +target_link_libraries( HYDROData_tests ${GUI_LIBRARIES} ${GEOM_LIBRARIES} ${CAS_LIBRARIES} ${QT_LIBRARIES} ${CPPUNIT_LIBRARIES} shapelib HYDROData ) -#IF( ${WIN32} ) -# add_custom_command( TARGET HYDROData_tests POST_BUILD COMMAND $(TargetPath) COMMENT "Running tests" ) -#ENDIF() - -#SET( INSTALL_BINS $ENV{HYDRO_ROOT_DIR}/bin/salome ) INSTALL(TARGETS HYDROData_tests EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})