project(MazDB-examples LANGUAGES CXX) list(APPEND mazdb-example_SRCS example.cpp ) qt5_add_resources(mazdb-example_SRCS example-qml.qrc ) add_executable(mazdb-example ${mazdb-example_SRCS}) target_include_directories(mazdb-example PRIVATE ${MazDBLib_SOURCE_DIR} ) target_link_libraries(mazdb-example PUBLIC maz-db Qt5::Core Qt5::Qml Qt5::Quick ) install(TARGETS mazdb-example RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )