cmake_minimum_required(VERSION 2.8.12)
project(Compliant_gui)

set(MOC_HEADER_FILES
    QCompliantMouseOperations.h
)

set(HEADER_FILES
    config.h
    CompliantAttachPerformer.h
    CompliantAttachPerformer.inl
)

set(SOURCE_FILES
    initCompliant_gui.cpp
    CompliantAttachPerformer.cpp
    QCompliantMouseOperations.cpp
)

find_package(SofaGui QUIET)

if(SofaGui_FOUND)
    qt4_wrap_cpp(MOC_FILES ${MOC_HEADER_FILES})
    add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES} ${MOC_FILES})
    add_definitions("-DSOFA_BUILD_COMPLIANT_GUI")
    target_link_libraries(${PROJECT_NAME} SofaGuiMain Compliant)
endif()

cmake_minimum_required(VERSION 2.8.12)
project(Compliant_gui)

set(MOC_HEADER_FILES
    QCompliantMouseOperations.h
)

set(HEADER_FILES
    config.h
    CompliantAttachPerformer.h
    CompliantAttachPerformer.inl
)

set(SOURCE_FILES
    initCompliant_gui.cpp
    CompliantAttachPerformer.cpp
    QCompliantMouseOperations.cpp
)

find_package(SofaGui QUIET)

if(SofaGui_FOUND)
    find_package(Qt5 COMPONENTS Core QUIET)
    if(Qt5Core_FOUND)
        qt5_wrap_cpp(MOC_FILES ${MOC_HEADER_FILES})
    else()
        find_package(Qt4 COMPONENTS qtcore)
        qt4_wrap_cpp(MOC_FILES ${MOC_HEADER_FILES})
    endif()
    
    add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES} ${MOC_FILES})
    add_definitions("-DSOFA_BUILD_COMPLIANT_GUI")
    target_link_libraries(${PROJECT_NAME} SofaGuiMain Compliant)
endif()

Apply qt5 test for compliant gui
Apply qt5 test for compliant gui


Former-commit-id: 62a59b1d505b854a71c9387284c6cbff2a800571