Skip to content

Commit

Permalink
Fixes by cmake-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjenssen committed Feb 6, 2024
1 parent a848694 commit 1640c58
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ApplicationLibCode/UnitTests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ FetchContent_Declare(

FetchContent_MakeAvailable(googletest)


# create an empty library target that will be used to copy files to the build
# folder
add_library(ResInsightDummyTestTarget EXCLUDE_FROM_ALL empty.cpp)
Expand All @@ -142,13 +141,11 @@ endforeach()
add_custom_target(PreBuildFileCopyTesting ${copyCommands})
set_property(TARGET PreBuildFileCopyTesting PROPERTY FOLDER "FileCopyTargets")


add_executable(ResInsight-tests ${SOURCE_UNITTEST_FILES} main.cpp)

# Make ResInsight-tests depend on the prebuild target.
add_dependencies(ResInsight-tests PreBuildFileCopyTesting)


configure_file(
${CMAKE_CURRENT_LIST_DIR}/RiaTestDataDirectory.h.cmake
${CMAKE_BINARY_DIR}/Generated/RiaTestDataDirectory.h
Expand Down Expand Up @@ -191,8 +188,6 @@ if(RESINSIGHT_USE_ODB_API)
list(APPEND LINK_LIBRARIES RifOdbReader)
endif()

target_link_libraries(
ResInsight-tests PUBLIC ${LINK_LIBRARIES} GTest::gtest
)
target_link_libraries(ResInsight-tests PUBLIC ${LINK_LIBRARIES} GTest::gtest)

add_test(NAME ResInsight-tests COMMAND ResInsight-tests)

0 comments on commit 1640c58

Please sign in to comment.