mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 11:50:33 +05:00
Fixed installation issue on Windows
This commit is contained in:
parent
b9d215ee2d
commit
e5b66ee76e
@ -64,4 +64,12 @@ FOREACH(_test ${CPP_TESTS})
|
|||||||
SET_TESTS_PROPERTIES(${testname} PROPERTIES ENVIRONMENT "${tests_env}" LABELS "tests")
|
SET_TESTS_PROPERTIES(${testname} PROPERTIES ENVIRONMENT "${tests_env}" LABELS "tests")
|
||||||
ENDFOREACH()
|
ENDFOREACH()
|
||||||
|
|
||||||
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${CPP_TESTS} PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ DESTINATION ${TEST_INSTALL_DIRECTORY})
|
IF(WIN32)
|
||||||
|
FOREACH(_test ${CPP_TESTS})
|
||||||
|
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/${_test}${CMAKE_EXECUTABLE_SUFFIX} PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ DESTINATION ${TEST_INSTALL_DIRECTORY})
|
||||||
|
ENDFOREACH()
|
||||||
|
ELSE()
|
||||||
|
FOREACH(_test ${CPP_TESTS})
|
||||||
|
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_test} PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ DESTINATION ${TEST_INSTALL_DIRECTORY})
|
||||||
|
ENDFOREACH()
|
||||||
|
ENDIF(WIN32)
|
||||||
|
@ -33,11 +33,11 @@ FOREACH(tfile ${SESSION_FREE_TESTS})
|
|||||||
SET(TEST_NAME SMESH_${BASE_NAME})
|
SET(TEST_NAME SMESH_${BASE_NAME})
|
||||||
ADD_TEST(${TEST_NAME} python ${tfile})
|
ADD_TEST(${TEST_NAME} python ${tfile})
|
||||||
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME};${COMPONENT_NAME}_tests")
|
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME};${COMPONENT_NAME}_tests")
|
||||||
endforeach()
|
ENDFOREACH()
|
||||||
|
|
||||||
FOREACH(tfile ${CPP_TESTS})
|
FOREACH(tfile ${CPP_TESTS})
|
||||||
GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
|
GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
|
||||||
SET(TEST_NAME SMESH_${BASE_NAME})
|
SET(TEST_NAME SMESH_${BASE_NAME})
|
||||||
ADD_TEST(${TEST_NAME} SMESH_RegularGridTest )
|
ADD_TEST(${TEST_NAME} ${BASE_NAME} )
|
||||||
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME};${COMPONENT_NAME}_tests")
|
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME};${COMPONENT_NAME}_tests")
|
||||||
endforeach()
|
ENDFOREACH()
|
||||||
|
Loading…
Reference in New Issue
Block a user