# HG changeset patch # User Matthias Larisch # Date 2017-03-08 09:34:01 # Node ID 885603cb79ae374b2b621061857e3310453088b3 # Parent 80498f7fdebc6e89f2fe5d95f83e920d239faacd Add QCW external as dependency diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,6 +56,7 @@ endif (BUILD_QWT) include(BuildQColorWidgets) + # includes include_directories("./src" ${QWT_INCLUDE_DIR} ${QCW_INCLUDE_DIR}) @@ -132,6 +133,7 @@ add_executable(${PROGRAM_NAME} WIN32 ${RES_FILES} ) +add_dependencies(${PROGRAM_NAME} QCW) # Use the Widgets module from Qt 5. target_link_libraries(${PROGRAM_NAME} ${QWT_LIBRARY} ${QCW_LIBRARY}) qt5_use_modules(${PROGRAM_NAME} Widgets SerialPort)