maz-db/example/CMakeLists.txt
raw| 1 | project(MazDB-examples LANGUAGES CXX) |
| 2 | |
| 3 | list(APPEND mazdb-example_SRCS |
| 4 | example.cpp |
| 5 | ) |
| 6 | |
| 7 | qt5_add_resources(mazdb-example_SRCS |
| 8 | example-qml.qrc |
| 9 | ) |
| 10 | |
| 11 | add_executable(mazdb-example ${mazdb-example_SRCS}) |
| 12 | |
| 13 | target_include_directories(mazdb-example |
| 14 | PRIVATE |
| 15 | ${MazDBLib_SOURCE_DIR} |
| 16 | ) |
| 17 | |
| 18 | target_link_libraries(mazdb-example |
| 19 | PUBLIC |
| 20 | maz-db |
| 21 | Qt5::Core |
| 22 | Qt5::Qml |
| 23 | Qt5::Quick |
| 24 | ) |
| 25 | |
| 26 | install(TARGETS mazdb-example |
| 27 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 28 | ) |