File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -245,5 +245,5 @@ endif()
245
245
# Testing
246
246
247
247
if (HWLOC_ENABLE_TESTING )
248
- add_subdirectory (${TOPDIR} / tests/hwloc ${CMAKE_CURRENT_BINARY_DIR} /tests/hwloc )
248
+ add_subdirectory (tests ${CMAKE_CURRENT_BINARY_DIR} /tests )
249
249
endif ()
Original file line number Diff line number Diff line change @@ -6,22 +6,22 @@ foreach(t api_version backends bind
6
6
groups insert_misc iodevs is_thissystem list_components object_userdata pci_backend synthetic
7
7
topology_abi topology_allow topology_diff topology_dup topology_restrict type_depth type_sscanf
8
8
)
9
- add_executable (hwloc_${t} hwloc_${t}.c )
9
+ add_executable (hwloc_${t} ${TOPDIR} /tests/hwloc/ hwloc_${t}.c )
10
10
target_link_libraries (hwloc_${t} PRIVATE hwloc )
11
11
12
12
add_test (NAME ${t} COMMAND hwloc_${t} WORKING_DIRECTORY ${PROJECT_BINARY_DIR} )
13
13
set_tests_properties (${t} PROPERTIES TIMEOUT 10 )
14
14
endforeach ()
15
15
16
16
foreach (t cpuset_nodeset memattrs cpukinds infos gl windows_processor_groups )
17
- add_executable (${t} ${t} .c )
17
+ add_executable (${t} ${TOPDIR} /tests/hwloc/${ t}.c )
18
18
target_link_libraries (${t} PRIVATE hwloc )
19
19
20
20
add_test (NAME ${t} COMMAND ${t} WORKING_DIRECTORY ${PROJECT_BINARY_DIR} )
21
21
set_tests_properties (${t} PROPERTIES TIMEOUT 10 )
22
22
endforeach ()
23
23
24
- add_executable (xmlbuffer xmlbuffer.c )
24
+ add_executable (xmlbuffer ${TOPDIR} /tests/hwloc/ xmlbuffer.c )
25
25
target_link_libraries (xmlbuffer PRIVATE hwloc )
26
26
add_test (NAME xmlbuffer00 COMMAND xmlbuffer 0 0 WORKING_DIRECTORY ${PROJECT_BINARY_DIR} )
27
27
add_test (NAME xmlbuffer01 COMMAND xmlbuffer 0 1 WORKING_DIRECTORY ${PROJECT_BINARY_DIR} )
Original file line number Diff line number Diff line change @@ -168,5 +168,4 @@ EXTRA_DIST = embedded/autogen.sh \
168
168
embedded/main.c \
169
169
embedded/run-embedded-tests.sh \
170
170
embedded/README.txt \
171
- embedded/config/README.txt \
172
- CMakeLists.txt
171
+ embedded/config/README.txt
You can’t perform that action at this time.
0 commit comments