[vlmc-devel] [PATCH 01/14] CMakeLists: Use Gui module in the CUI

Yikai Lu luyikei.qmltu at gmail.com
Mon Apr 11 08:09:12 CEST 2016


---
 src/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ce7fa9f..161ad07 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -16,7 +16,7 @@ if (Qt5Core_FOUND)
     if(WITH_GUI)
         find_package(Qt5 COMPONENTS Widgets Gui Network)
     else()
-        find_package(Qt5 COMPONENTS Network)
+        find_package(Qt5 COMPONENTS Gui Network)
     endif()
 endif()
 
@@ -122,7 +122,7 @@ IF (NOT WITH_GUI)
     LIST (APPEND VLMC_SRCS Main/main.cpp Renderer/ConsoleRenderer.cpp )
     qt5_add_resources(VLMC_RCC_SRCS ${VLMC_RCC})
     ADD_EXECUTABLE(vlmc ${GUI_TYPE} ${VLMC_SRCS} ${VLMC_MOC_SRCS} ${VLMC_RCC_SRCS})
-    qt5_use_modules(vlmc Core Network)
+    qt5_use_modules(vlmc Core Gui Network)
     TARGET_LINK_LIBRARIES(vlmc ${VLMC_LIBS})
 
 #Add GUI stuff if required
-- 
1.9.1



More information about the Vlmc-devel mailing list