mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
2734675750
By adding headers to sources of targets, CMake adds them to list of project files generated for IDEs. This is non-intrusive trick, which does not affect targets compilation.
15 lines
364 B
CMake
15 lines
364 B
CMake
macro (build_and_run arg)
|
|
# Add headers to sources to enable file browsing in IDEs
|
|
add_executable(${arg} ${arg}.cpp ${sqlpp_headers})
|
|
add_test(${arg} ${arg})
|
|
endmacro ()
|
|
|
|
build_and_run(InterpretTest)
|
|
build_and_run(InsertTest)
|
|
build_and_run(RemoveTest)
|
|
build_and_run(UpdateTest)
|
|
build_and_run(SelectTest)
|
|
build_and_run(FunctionTest)
|
|
build_and_run(PreparedTest)
|
|
|