make use of usage requirements

This commit is contained in:
Daniel Pfeifer
2015-05-29 22:10:04 +02:00
parent b8a93a8aa3
commit b0453ffb1c
4 changed files with 18 additions and 19 deletions

View File

@@ -22,8 +22,6 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
include_directories(../tests)
set(example_names
#sample
insert
@@ -40,6 +38,7 @@ endif()
create_test_sourcelist(example_sources example_main.cpp ${example_names})
add_executable(sqlpp11_examples ${example_sources})
target_link_libraries(sqlpp11_examples PRIVATE sqlpp11 sqlpp11_testing)
foreach(example IN LISTS example_names)
add_test(NAME sqlpp11.examples.${example}