Skip to content

Commit

Permalink
Fixing bug in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
ifilot committed Apr 17, 2024
1 parent 814ac45 commit 0245a5d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
add_library(unittest STATIC unittest.cpp)

# set executables
SET(EXECUTABLES TestIsosurface TestScalarField TestD2OFileFormat TestGenerator)
SET(EXECUTABLES TestIsosurface TestScalarField TestD2OFileFormat)

# only add this test when not using GCOV
if(NOT USE_GCOV)
list(APPEND EXECUTABLES TestGenerator)
endif()

# only add this test when not using GCOV
# only add this test when using GCOV
if(USE_GCOV)
list(APPEND EXECUTABLES TestFileCreation)
endif()
Expand All @@ -39,14 +39,13 @@ endif()
add_executable(TestIsosurface test_isosurface.cpp)
add_executable(TestScalarField test_scalarfield.cpp)
add_executable(TestD2OFileFormat test_d2o_fileformat.cpp)
add_executable(TestGenerator test_generator.cpp)

# only add this test when not using GCOV
if(NOT USE_GCOV)
add_executable(TestGenerator test_generator.cpp)
endif()

# only add this test when not using OpenVDB
# only add this test when using GCOV
if(USE_GCOV)
add_executable(TestFileCreation test_file_creation.cpp)
endif()
Expand Down

0 comments on commit 0245a5d

Please sign in to comment.