mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
CMake adjustments after unit test refactoring
* TARGET_RUNTIME_DLLS requires CMake 3.21 * Hide compiiler warnings in Visual Studio
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
# ResInsight unit tests
|
||||
|
||||
if(MSVC)
|
||||
# TARGET_RUNTIME_DLLS requires 3.21
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
endif(MSVC)
|
||||
|
||||
set(SOURCE_UNITTEST_FILES
|
||||
${CMAKE_CURRENT_LIST_DIR}/cvfGeometryTools-Test.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/Ert-Test.cpp
|
||||
@@ -204,6 +209,8 @@ if(MSVC)
|
||||
$<TARGET_FILE_DIR:ResInsight-tests>
|
||||
COMMAND_EXPAND_LISTS
|
||||
)
|
||||
|
||||
set_target_properties(ResInsight-tests PROPERTIES COMPILE_FLAGS "/wd4190")
|
||||
endif(MSVC)
|
||||
|
||||
add_test(NAME ResInsight-tests COMMAND ResInsight-tests)
|
||||
|
||||
Reference in New Issue
Block a user