mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
Documentation for ad24ee1273
This commit is contained in:
parent
0504445183
commit
9ef77c47a7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user