fix numerical_methods cmake

This commit is contained in:
Krishna Vedala 2020-04-20 12:04:25 -04:00
parent a4cb77a36f
commit 60f100299b
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -10,7 +10,8 @@ file( GLOB APP_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c )
foreach( testsourcefile ${APP_SOURCES} )
# I used a simple string replace, to cut off .cpp.
string( REPLACE ".c" "" testname ${testsourcefile} )
string( REPLACE " " "_" testname ${testsourcefile} )
string( REPLACE ".C" "" testname ${testname} )
string( REPLACE " " "_" testname ${testname} )
add_executable( ${testname} ${testsourcefile} )
@ -21,6 +22,6 @@ foreach( testsourcefile ${APP_SOURCES} )
target_link_libraries(${testname} OpenMP::OpenMP_C)
endif()
install(TARGETS ${testname} DESTINATION "bin/stats")
install(TARGETS ${testname} DESTINATION "bin/numerical_methods")
endforeach( testsourcefile ${APP_SOURCES} )