File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 11include_directories (${CMAKE_SOURCE_DIR} /src/include )
22
33macro (add_library_target target )
4- add_library ( ${target} STATIC " ${target} .cpp" )
5- target_link_libraries (${target} PRIVATE ${ARGN } )
6- set_property ( TARGET ${target} PROPERTY CXX_STANDARD 20 )
4+ string (REPLACE ".cpp" "" target_name ${target} )
5+ add_library (${target_name} STATIC ${target } )
6+ target_link_libraries ( ${target_name} PRIVATE ${ARGN} )
77endmacro ()
88
9- add_library_target(bellman_ford)
10- add_library_target(breadth_first_search)
11- add_library_target(depth_first_search)
12- add_library_target(dijkstra)
13- # add_library_target(floyd_warshall)
14- # add_library_target(kruskal)
15- # add_library_target(prim)
9+ add_library_target(bellman_ford.cpp )
10+ add_library_target(breadth_first_search.cpp )
11+ add_library_target(depth_first_search.cpp )
12+ add_library_target(dijkstra.cpp )
13+ # add_library_target(floyd_warshall.cpp )
14+ # add_library_target(kruskal.cpp )
15+ # add_library_target(prim.cpp )
You can’t perform that action at this time.
0 commit comments