@@ -12,19 +12,15 @@ ROOTTEST_GENERATE_DICTIONARY(
12
12
# Write the TTree with the custom class branch
13
13
ROOTTEST_GENERATE_EXECUTABLE(
14
14
write_ttree
15
+ write_ttree.cxx ttree_event_dict.cxx
15
16
LIBRARIES Core RIO Tree
16
17
FIXTURES_REQUIRED generated_event_dictionary_ttree
17
18
FIXTURES_SETUP write_ttree_executable)
18
19
19
- # Specify more than one input source for the generated executable
20
- target_sources (
21
- write_ttree
22
- PRIVATE write_ttree.cxx ttree_event_dict.cxx
23
- )
24
20
ROOTTEST_ADD_TEST(write_ttree
25
21
EXEC ./write_ttree
26
22
FIXTURES_REQUIRED write_ttree_executable
27
- FIXTURES_SETUP written_ttree )
23
+ FIXTURES_SETUP makeproject_written_ttree )
28
24
29
25
# Call MakeProject on the output file
30
26
ROOTTEST_GENERATE_EXECUTABLE(
@@ -35,7 +31,7 @@ ROOTTEST_GENERATE_EXECUTABLE(
35
31
36
32
ROOTTEST_ADD_TEST(makeproject_ttree
37
33
EXEC ./makeproject_ttree
38
- FIXTURES_REQUIRED "written_ttree; makeproject_ttree"
34
+ FIXTURES_REQUIRED makeproject_written_ttree makeproject_ttree
39
35
FIXTURES_SETUP makeproject_ttree_called)
40
36
41
37
# Read back the class instance thanks to the shared library generated by MakeProject.
@@ -51,7 +47,7 @@ ROOTTEST_GENERATE_EXECUTABLE(
51
47
read_ttree.cxx
52
48
LIBRARIES ${ROOT_LIBRARIES} GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main ${TTREESTLTESTLIB}
53
49
FIXTURES_REQUIRED makeproject_ttree_called
54
- FIXTURES_SETUP read_ttree_executable
50
+ FIXTURES_SETUP makeproject_read_ttree_executable
55
51
)
56
52
target_include_directories (read_ttree PRIVATE ${CMAKE_CURRENT_BINARY_DIR} )
57
53
target_link_directories (read_ttree PRIVATE ${CMAKE_CURRENT_BINARY_DIR} /libttreestltest)
@@ -67,7 +63,7 @@ set(_roottest_env_librarypath ${ROOTTEST_ENV_LIBRARYPATH})
67
63
set (ROOTTEST_ENV_LIBRARYPATH "${ROOTTEST_ENV_LIBRARYPATH} :${CMAKE_CURRENT_BINARY_DIR} /libttreestltest" )
68
64
ROOTTEST_ADD_TEST(read_ttree
69
65
EXEC ./read_ttree
70
- FIXTURES_REQUIRED read_ttree_executable
71
- # PATH is used on Windows to find libraries for loading
72
- ENVIRONMENT PATH =${CMAKE_CURRENT_BINARY_DIR} /libttreestltest)
66
+ FIXTURES_REQUIRED makeproject_read_ttree_executable
67
+ # PATH is used on Windows to find libraries for loading
68
+ ENVIRONMENT PATH =${CMAKE_CURRENT_BINARY_DIR} /libttreestltest)
73
69
set (ROOTTEST_ENV_LIBRARYPATH ${_roottest_env_librarypath} )
0 commit comments