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

Hugo Beauzée-Luyssen hugo at beauzee.fr
Tue Apr 12 13:33:40 CEST 2016


On 04/11/2016 08:09 AM, Yikai Lu wrote:
> ---
>   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
>

Hi,

I guess this is required until we stop using QUndoStack in the Core?


More information about the Vlmc-devel mailing list