Skip to content

Commit 40be378

Browse files
Revert "test: make executables the tests themselves"
This reverts commit 7a16c31.
1 parent 7a16c31 commit 40be378

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

math/CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@
22
# with full pathname. RELATIVE may makes it easier to extract an executable name
33
# automatically.
44
file( GLOB APP_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp )
5-
6-
5+
# file( GLOB APP_SOURCES ${CMAKE_SOURCE_DIR}/*.c )
6+
# AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} APP_SOURCES)
77
foreach( testsourcefile ${APP_SOURCES} )
8-
# remove cpp from filename
8+
# I used a simple string replace, to cut off .cpp.
99
string( REPLACE ".cpp" "" testname ${testsourcefile} )
1010
add_executable( ${testname} ${testsourcefile} )
1111

1212
set_target_properties(${testname} PROPERTIES LINKER_LANGUAGE CXX)
13-
14-
# add test with the same name as file name
15-
add_test(NAME ${testname} COMMAND ${testname})
16-
1713
if(OpenMP_CXX_FOUND)
1814
target_link_libraries(${testname} OpenMP::OpenMP_CXX)
1915
endif()

0 commit comments

Comments
 (0)