mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 13:31:21 +03:00
fix numerical_methods cmake
This commit is contained in:
parent
a4cb77a36f
commit
60f100299b
@ -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} )
|
||||
|
Loading…
Reference in New Issue
Block a user