kima2/test/CMakeLists.txt

18 lines
786 B
CMake
Raw Permalink Normal View History

2018-07-10 14:12:37 +02:00
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
2018-07-10 12:51:15 +02:00
add_executable(test_seller test_seller.cpp)
target_link_libraries(test_seller core Boost::unit_test_framework)
2018-07-10 15:46:55 +02:00
add_test(NAME Seller COMMAND ${CMAKE_BINARY_DIR}/bin/test_seller)
2018-07-11 12:54:33 +02:00
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)
2018-07-10 12:51:15 +02:00
add_executable(test_database test_database.cpp)
2018-07-10 14:12:37 +02:00
target_link_libraries(test_database core Boost::unit_test_framework stdc++fs)
2018-07-10 15:46:55 +02:00
add_test(NAME Database COMMAND ${CMAKE_BINARY_DIR}/bin/test_database)
2018-07-12 14:39:08 +02:00
add_executable(test_sale test_sale.cpp)
target_link_libraries(test_sale core Boost::unit_test_framework)
add_test(NAME Sale COMMAND ${CMAKE_BINARY_DIR}/bin/test_sale)