diff options
Diffstat (limited to 'subprojects/boost-sqlite/test/CMakeLists.txt')
-rw-r--r-- | subprojects/boost-sqlite/test/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/subprojects/boost-sqlite/test/CMakeLists.txt b/subprojects/boost-sqlite/test/CMakeLists.txt new file mode 100644 index 0000000..79750fb --- /dev/null +++ b/subprojects/boost-sqlite/test/CMakeLists.txt @@ -0,0 +1,11 @@ +file(GLOB ALL_TEST_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) + +add_executable(boost_sqlite_tests ${ALL_TEST_FILES}) +target_link_libraries(boost_sqlite_tests PUBLIC SQLite::SQLite3 + Boost::json Boost::sqlite Boost::unit_test_framework) +target_compile_definitions(boost_sqlite_tests PUBLIC BOOST_SQLITE_SEPARATE_COMPILATION=1) + +add_test(NAME boost_sqlite_tests COMMAND boost_sqlite_tests) + +add_subdirectory(extension) + |