mirror of
https://github.com/getml/sqlgen.git
synced 2026-01-04 08:30:30 -06:00
20 lines
416 B
CMake
20 lines
416 B
CMake
project(sqlgen-sqlite-tests)
|
|
|
|
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS "*.cpp")
|
|
|
|
add_executable(
|
|
sqlgen-sqlite-tests
|
|
${SOURCES}
|
|
)
|
|
target_precompile_headers(sqlgen-sqlite-tests PRIVATE [["sqlgen.hpp"]] <iostream> <string> <functional> <gtest/gtest.h>)
|
|
|
|
|
|
target_link_libraries(
|
|
sqlgen-sqlite-tests
|
|
PRIVATE
|
|
"${SQLGEN_GTEST_LIB}"
|
|
)
|
|
|
|
find_package(GTest)
|
|
gtest_discover_tests(sqlgen-sqlite-tests)
|