include_directories(.) include_directories(. ../libnfc_cpptools) # Find includes in corresponding build directories set(CMAKE_INCLUDE_CURRENT_DIR ON) # Instruct CMake to run moc automatically when needed. set(CMAKE_AUTOMOC ON) # Find the QtWidgets library find_package(Qt5Widgets) qt5_wrap_ui(UI_HEADERS UI/MainWindow.ui) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -ggdb -g3 ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") # Tell CMake to create the helloworld executable add_executable(${PROJECT_NAME}-gui main.cpp UI/MainWindow.cpp UI/MainWindow.h ${UI_HEADERS} Core/LibNfcOperation.cpp Core/LibNfcOperation.hxx Core/LibNfcOperation.h ) # Use the Widgets module from Qt 5. target_link_libraries(${PROJECT_NAME}-gui Qt5::Widgets ${PROJECT_NAME}) install(TARGETS ${PROJECT_NAME}-gui RUNTIME DESTINATION bin)