Skip to content

Commit

Permalink
Enabled testing in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Erroneous1 committed Sep 13, 2016
1 parent 25fd3ea commit eb149ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

macro (build_and_run arg)
include_directories(include)
# Add headers to sources to enable file browsing in IDEs
add_executable("Sqlpp11ODBC${arg}" "${arg}.cpp" ${sqlpp_headers})
target_link_libraries("Sqlpp11ODBC${arg}" ${ODBC_LIBRARIES} sqlpp-odbc)
#target_link_libraries("Sqlpp11ODBC${arg}" nativeclient)
add_test("Sqlpp11ODBC${arg}" "${arg}")
endmacro ()

#build_and_run(ODBCTest)
build_and_run(ODBCTest)

0 comments on commit eb149ea

Please sign in to comment.