Documentation for ad24ee1273

This commit is contained in:
github-actions 2022-12-21 15:07:59 +00:00
parent 0504445183
commit 9ef77c47a7

View File

@ -261,7 +261,7 @@ An example of how your new <tt>CMakeLists.txt</tt> file should look
file( GLOB APP_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c )
foreach( testsourcefile ${APP_SOURCES} )
string( REPLACE ".c" "" testname ${testsourcefile} ) # File type. Example: `.c`, `.h`
string( REPLACE ".c" "" testname ${testsourcefile} ) # File type. Example: `.c`
add_executable( ${testname} ${testsourcefile} )
if(OpenMP_C_FOUND)
@ -270,7 +270,7 @@ foreach( testsourcefile ${APP_SOURCES} )
if(MATH_LIBRARY)
target_link_libraries(${testname} ${MATH_LIBRARY})
endif()
install(TARGETS ${testname} DESTINATION "bin/<foldername>") # Folder name
install(TARGETS ${testname} DESTINATION "bin/<foldername>") # Folder name. Do NOT include `<>`
endforeach( testsourcefile ${APP_SOURCES} )
@endicode
@ -280,7 +280,7 @@ Include your new directory after the last subdirectory. Example:
@icode{cmake}
...
add_subdirectory(divide_and_conquer)
add_subdirectory(numerical_methods)
add_subdirectory(<foldername>)
@endicode