u01: Change name of library
The task requires this name.
This commit is contained in:
parent
18efa58df8
commit
51ce26359f
|
@ -4,13 +4,14 @@ project(ecg-u01)
|
|||
add_library(tree SHARED node.cpp)
|
||||
# ~~~~~~
|
||||
# This can be changed to STATIC to build and link a static library.
|
||||
>>>>>>> a82be76 (fixup! u01: Change name of library)
|
||||
add_executable(main main.cpp)
|
||||
target_link_libraries(main ecg_tree)
|
||||
target_link_libraries(main tree)
|
||||
|
||||
find_package(Catch2 3)
|
||||
if(Catch2_FOUND)
|
||||
add_executable(tests tests.cpp)
|
||||
target_link_libraries(tests PRIVATE Catch2::Catch2WithMain ecg_tree)
|
||||
target_link_libraries(tests PRIVATE Catch2::Catch2WithMain tree)
|
||||
|
||||
include(CTest)
|
||||
include(Catch)
|
||||
|
@ -18,4 +19,4 @@ if(Catch2_FOUND)
|
|||
endif()
|
||||
|
||||
install(TARGETS main)
|
||||
install(TARGETS ecg_tree DESTINATION lib)
|
||||
install(TARGETS tree DESTINATION lib)
|
||||
|
|
Reference in a new issue