13 lines
618 B
CMake
13 lines
618 B
CMake
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
|
|
|
|
add_executable(test_seller test_seller.cpp)
|
|
target_link_libraries(test_seller core Boost::unit_test_framework)
|
|
add_test(NAME Seller COMMAND ${CMAKE_BINARY_DIR}/bin/test_seller)
|
|
|
|
add_executable(test_article test_article.cpp)
|
|
target_link_libraries(test_article core Boost::unit_test_framework)
|
|
add_test(NAME Article COMMAND ${CMAKE_BINARY_DIR}/bin/test_article)
|
|
|
|
add_executable(test_database test_database.cpp)
|
|
target_link_libraries(test_database core Boost::unit_test_framework stdc++fs)
|
|
add_test(NAME Database COMMAND ${CMAKE_BINARY_DIR}/bin/test_database)
|