Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

CMakeLists.txt 885B

1234567891011121314151617181920212223242526272829303132
  1. include_directories(
  2. ${LIBNFC_CPPTOOLS_INCLUDE_PATH}
  3. )
  4. # Find includes in corresponding build directories
  5. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  6. # Instruct CMake to run moc automatically when needed.
  7. set(CMAKE_AUTOMOC ON)
  8. # Find the QtWidgets library
  9. find_package(Qt5Widgets)
  10. qt5_wrap_ui(UI_HEADERS UI/MainWindow.ui)
  11. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -ggdb -g3 ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
  12. # Tell CMake to create the helloworld executable
  13. add_executable(${PROJECT_NAME}-gui
  14. main.cpp
  15. UI/MainWindow.cpp
  16. UI/MainWindow.h
  17. ${UI_HEADERS}
  18. Core/LibNfcOperation.cpp
  19. Core/LibNfcOperation.hxx
  20. Core/LibNfcOperation.h
  21. )
  22. # Use the Widgets module from Qt 5.
  23. target_link_libraries(${PROJECT_NAME}-gui Qt5::Widgets ${PROJECT_NAME})
  24. install(TARGETS ${PROJECT_NAME}-gui
  25. RUNTIME DESTINATION bin)