drogon/orm_lib/tests/CMakeLists.txt
interfector18 17b8c337f9
Standardize Row and Result api (#409)
* Standardize Row and Result api, throw specific exceptions

* Fix drogon_ctl for sqlite3 models

* Add mysql and sqlite3 tests, add exception throwing tests

* configure mysql in travis-ci

Co-authored-by: antao <antao2002@gmail.com>
2020-04-11 11:46:47 +08:00

13 lines
334 B
CMake

link_libraries(${PROJECT_NAME})
add_executable(db_test
db_test.cc
postgresql/Users.cc
mysql/Users.cc
sqlite3/Users.cc
)
set_property(TARGET db_test PROPERTY CXX_STANDARD ${DROGON_CXX_STANDARD})
set_property(TARGET db_test PROPERTY CXX_STANDARD_REQUIRED ON)
set_property(TARGET db_test PROPERTY CXX_EXTENSIONS OFF)