You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 887B

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