Skip to content
Permalink
Browse files

Add custom target for QT4_WRAP_CPP macro.

Move wmsprovider dependencies to QT4_WRAP_CPP target to fix parallel build.
  • Loading branch information
sebastic committed Mar 28, 2018
1 parent 0eb3cd4 commit aa404258853ea5b79a27bc6153eb3dbb1e5dd7d2
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/providers/wms/CMakeLists.txt
@@ -26,6 +26,10 @@ SET (WMS_MOC_HDRS

QT4_WRAP_CPP (WMS_MOC_SRCS ${WMS_MOC_HDRS})

ADD_CUSTOM_TARGET(wms_cpp ALL DEPENDS ${WMS_MOC_SRCS})

ADD_DEPENDENCIES(wms_cpp qgis_gui ui)

INCLUDE_DIRECTORIES(
.
../../core
@@ -46,8 +50,6 @@ INCLUDE_DIRECTORIES(SYSTEM
ADD_LIBRARY(wmsprovider_a STATIC ${WMS_SRCS} ${WMS_MOC_SRCS})
ADD_LIBRARY(wmsprovider MODULE ${WMS_SRCS} ${WMS_MOC_SRCS})

ADD_DEPENDENCIES(wmsprovider qgis_gui ui)

TARGET_LINK_LIBRARIES(wmsprovider
qgis_core
qgis_gui

0 comments on commit aa40425

Please sign in to comment.
You can’t perform that action at this time.