mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 21:04:15 +08:00
23 lines
657 B
CMake
23 lines
657 B
CMake
|
|
macro (build arg)
|
|
# Add headers to sources to enable file browsing in IDEs
|
|
include_directories("${CMAKE_SOURCE_DIR}/tests")
|
|
add_executable("Sqlpp11Example${arg}" "${arg}.cpp" ${sqlpp_headers} "${CMAKE_SOURCE_DIR}/tests/MockDb.h" "${CMAKE_CURRENT_LIST_DIR}/Sample.h")
|
|
add_test("${arg}" "${arg}")
|
|
endmacro ()
|
|
|
|
#build(sample)
|
|
build(insert)
|
|
build(update)
|
|
build(remove)
|
|
build(select)
|
|
|
|
#find_package(PythonInterp REQUIRED)
|
|
|
|
#add_custom_command(
|
|
# OUTPUT ${CMAKE_CURRENT_LIST_DIR}/Sample.h
|
|
# COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/scripts/ddl2cpp ${CMAKE_CURRENT_LIST_DIR}/sample.sql Sample test
|
|
# DEPENDS ${CMAKE_CURRENT_LIST_DIR}/sample.sql
|
|
# )
|
|
|