Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions math/genvector/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ ROOT_EXECUTABLE(testVectorIO testVectorIO.cxx LIBRARIES GenVector Tree Hist Gpad
ROOT_ADD_TEST(test-genvector-vectorio COMMAND testVectorIO
COPY_TO_BUILDDIR ${CMAKE_CURRENT_SOURCE_DIR}/Track.h)

if (DEFINED ENV{USE_REFLEX})
REFLEX_GENERATE_DICTIONARY(GVTrackDict Track.h SELECTION TrackDict.xml)
else()
ROOT_GENERATE_DICTIONARY(GVTrackDict Track.h LINKDEF TrackLinkDef.h OPTIONS -inlineInputHeader)
endif()
Comment on lines +22 to +26
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would either drop one or always run both.

Suggested change
if (DEFINED ENV{USE_REFLEX})
REFLEX_GENERATE_DICTIONARY(GVTrackDict Track.h SELECTION TrackDict.xml)
else()
ROOT_GENERATE_DICTIONARY(GVTrackDict Track.h LINKDEF TrackLinkDef.h OPTIONS -inlineInputHeader)
endif()
REFLEX_GENERATE_DICTIONARY(GVTrackDictXml Track.h SELECTION TrackDict.xml)
ROOT_GENERATE_DICTIONARY(GVTrackDict Track.h LINKDEF TrackLinkDef.h OPTIONS -inlineInputHeader)

and also duplicate the test accordingly.

ROOT_EXECUTABLE(testVectorIOdict testVectorIO.cxx GVTrackDict.cxx LIBRARIES GenVector Tree Hist Gpad Physics)
target_include_directories(testVectorIOdict PRIVATE ./)
if (DEFINED ENV{USE_REFLEX})
target_compile_definitions(testVectorIOdict PRIVATE USE_REFLEX)
endif()
ROOT_ADD_TEST(test-genvector-vectoriodict COMMAND testVectorIOdict
COPY_TO_BUILDDIR ${CMAKE_CURRENT_SOURCE_DIR}/Track.h)

ROOT_EXECUTABLE(coordinates3D coordinates3D.cxx LIBRARIES GenVector)
ROOT_ADD_TEST(test-genvector-coordinates3D COMMAND coordinates3D)

Expand Down
207 changes: 0 additions & 207 deletions math/genvector/test/Makefile

This file was deleted.

114 changes: 0 additions & 114 deletions math/mathcore/test/fit/Makefile

This file was deleted.

2 changes: 2 additions & 0 deletions math/smatrix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ ROOT_GENERATE_DICTIONARY(G__Smatrix32
Core
MathCore
)

ROOT_ADD_TEST_SUBDIRECTORY(test)
Loading
Loading