Skip to content
Snippets Groups Projects
Commit f1efbbb5 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

Merge branch 'master' into devel

parents b6fdceb5 3e371221
No related branches found
No related tags found
No related merge requests found
Pipeline #9236 canceled
# Copyright (c) 2014 CNRS # Copyright (c) 2014, 2020 CNRS
# Author: Mathieu Geisert, Florent Lamiraux # Author: Mathieu Geisert, Florent Lamiraux, Guilhem Saurel
# #
# This file is part of gepetto-viewer-corba. # This file is part of gepetto-viewer-corba.
# gepetto-viewer-corba is free software: you can redistribute it # gepetto-viewer-corba is free software: you can redistribute it
...@@ -15,20 +15,19 @@ ...@@ -15,20 +15,19 @@
# gepetto-viewer-corba. If not, see # gepetto-viewer-corba. If not, see
# <http://www.gnu.org/licenses/>. # <http://www.gnu.org/licenses/>.
# Requires at least CMake 2.8 to configure the package. CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
SET(PROJECT_NAME gepetto-viewer-corba) SET(PROJECT_NAME gepetto-viewer-corba)
SET(PROJECT_DESCRIPTION "Corba server for gepetto-viewer") SET(PROJECT_DESCRIPTION "Corba server for gepetto-viewer")
SET(PROJECT_URL "https://github.com/Gepetto/${PROJECT_NAME}") SET(PROJECT_URL "https://github.com/Gepetto/${PROJECT_NAME}")
SET(PROJECT_USE_CMAKE_EXPORT TRUE)
SET(CXX_DISABLE_WERROR true) SET(CXX_DISABLE_WERROR true)
INCLUDE(cmake/base.cmake) INCLUDE(cmake/base.cmake)
INCLUDE(cmake/idl.cmake) INCLUDE(cmake/idl.cmake)
INCLUDE(cmake/python.cmake) INCLUDE(cmake/python.cmake)
INCLUDE(cmake/boost.cmake) INCLUDE(cmake/boost.cmake)
INCLUDE(cmake/test.cmake)
INCLUDE(cmake/apple.cmake) INCLUDE(cmake/apple.cmake)
SET(CLIENT_ONLY FALSE CACHE BOOL "Set to true to install the client only") SET(CLIENT_ONLY FALSE CACHE BOOL "Set to true to install the client only")
...@@ -55,10 +54,7 @@ SET(${PROJECT_NAME}_HEADERS ...@@ -55,10 +54,7 @@ SET(${PROJECT_NAME}_HEADERS
# {{{ C++ server. # {{{ C++ server.
IF(NOT CLIENT_ONLY) IF(NOT CLIENT_ONLY)
# {{{ Dependencies for the server. # {{{ Dependencies for the server.
ADD_PROJECT_DEPENDENCY("gepetto-viewer" REQUIRED)
# Tells pkg-config to read qtversion and cmake_plugin from pkg config file.
LIST(APPEND PKG_CONFIG_ADDITIONAL_VARIABLES qtversion cmake_plugin)
ADD_REQUIRED_DEPENDENCY("gepetto-viewer >= 4.3.0")
# Get desired Qt version # Get desired Qt version
string(REPLACE "." ";" DESIRED_QT_VERSION_LIST ${GEPETTO_VIEWER_QTVERSION}) string(REPLACE "." ";" DESIRED_QT_VERSION_LIST ${GEPETTO_VIEWER_QTVERSION})
...@@ -76,16 +72,18 @@ IF(NOT CLIENT_ONLY) ...@@ -76,16 +72,18 @@ IF(NOT CLIENT_ONLY)
SET(CMAKE_INCLUDE_CURRENT_DIR ON) SET(CMAKE_INCLUDE_CURRENT_DIR ON)
IF(PROJECT_USE_QT4) IF(PROJECT_USE_QT4)
FIND_PACKAGE(Qt4 REQUIRED QtCore QtGui QtNetwork) FIND_PACKAGE(Qt4 REQUIRED QtCore QtGui QtNetwork)
SET(PKG_CONFIG_EXTRA "qtversion=${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}") SET(GEPETTO_VIEWER_CORBA_QTVERSION "${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}")
INCLUDE(${QT_USE_FILE}) INCLUDE(${QT_USE_FILE})
ELSE(PROJECT_USE_QT4) ELSE(PROJECT_USE_QT4)
FOREACH (component "Core" "Widgets" "Gui" "Network" "Concurrent") FOREACH (component "Core" "Widgets" "Gui" "Network" "Concurrent" "Xml" "OpenGL")
FIND_PACKAGE ("Qt5${component}" REQUIRED) FIND_PACKAGE ("Qt5${component}" REQUIRED)
LIST(APPEND QT_INCLUDE_DIRS ${Qt5${component}_INCLUDE_DIRS}) LIST(APPEND QT_INCLUDE_DIRS ${Qt5${component}_INCLUDE_DIRS})
LIST(APPEND QT_LIBRARIES ${Qt5${component}_LIBRARIES} ) LIST(APPEND QT_LIBRARIES ${Qt5${component}_LIBRARIES} )
ENDFOREACH (component "Core" "Widgets" "Gui" "OpenGL" "Network") ENDFOREACH (component "Core" "Widgets" "Gui" "OpenGL" "Network")
SET(PKG_CONFIG_EXTRA "qtversion=${Qt5Core_VERSION}") SET(GEPETTO_VIEWER_CORBA_QTVERSION "${Qt5Core_VERSION}")
ENDIF(PROJECT_USE_QT4) ENDIF(PROJECT_USE_QT4)
SET(PKG_CONFIG_EXTRA "qtversion=${GEPETTO_VIEWER_CORBA_QTVERSION}")
SET(PACKAGE_EXTRA_MACROS "set(GEPETTO_VIEWER_CORBA_QTVERSION ${GEPETTO_VIEWER_CORBA_QTVERSION})")
INCLUDE_DIRECTORIES(SYSTEM ${EIGEN3_INCLUDE_DIRS} ${QT_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(SYSTEM ${EIGEN3_INCLUDE_DIRS} ${QT_INCLUDE_DIRS})
# }}} # }}}
...@@ -95,7 +93,6 @@ IF(NOT CLIENT_ONLY) ...@@ -95,7 +93,6 @@ IF(NOT CLIENT_ONLY)
# For backward compatibility # For backward compatibility
SET(PKG_CONFIG_EXTRA "${PKG_CONFIG_EXTRA}\ncmake_plugin=${GEPETTO_VIEWER_CMAKE_PLUGIN}") SET(PKG_CONFIG_EXTRA "${PKG_CONFIG_EXTRA}\ncmake_plugin=${GEPETTO_VIEWER_CMAKE_PLUGIN}")
INCLUDE(${GEPETTO_VIEWER_CMAKE_PLUGIN})
# }}} # }}}
# {{{ Set list of headers # {{{ Set list of headers
......
Subproject commit 7eca9ee6c9d1c4ee20eb82272e94f9d11642053a Subproject commit a61ae61479a1d50d1ae3c988d1d9aaf20841173d
# Copyright (c) 2015 LAAS-CNRS # Copyright (c) 2015, 2020 LAAS-CNRS
# Author: Joseph Mirabel # Author: Joseph Mirabel, Guilhem Saurel
# #
# This file is part of SceneViewer-corba. # This file is part of SceneViewer-corba.
# SceneViewer-corba is free software: you can redistribute it # SceneViewer-corba is free software: you can redistribute it
...@@ -20,7 +20,6 @@ SET(LIBRARY_NAME ${PROJECT_NAME}) ...@@ -20,7 +20,6 @@ SET(LIBRARY_NAME ${PROJECT_NAME})
MACRO(ADD_EXAMPLE NAME SOURCE) MACRO(ADD_EXAMPLE NAME SOURCE)
ADD_EXECUTABLE (${NAME} ${SOURCE}) ADD_EXECUTABLE (${NAME} ${SOURCE})
TARGET_LINK_LIBRARIES(${NAME} ${LIBRARY_NAME}) TARGET_LINK_LIBRARIES(${NAME} ${LIBRARY_NAME})
PKG_CONFIG_USE_DEPENDENCY(${NAME} gepetto-viewer)
PKG_CONFIG_USE_DEPENDENCY(${NAME} omniORB4) PKG_CONFIG_USE_DEPENDENCY(${NAME} omniORB4)
ENDMACRO() ENDMACRO()
......
...@@ -17,6 +17,4 @@ ...@@ -17,6 +17,4 @@
# gepetto-viewer-corba If not, see # gepetto-viewer-corba If not, see
# <http://www.gnu.org/licenses/>. # <http://www.gnu.org/licenses/>.
INCLUDE(${GEPETTO_VIEWER_CMAKE_PLUGIN})
ADD_SUBDIRECTORY(omniorbserver) ADD_SUBDIRECTORY(omniorbserver)
...@@ -46,6 +46,5 @@ GEPETTO_GUI_PLUGIN(omniorbserver ...@@ -46,6 +46,5 @@ GEPETTO_GUI_PLUGIN(omniorbserver
# List of dependencies to be given to PKG_CONFIG_USE_DEPENDENCY # List of dependencies to be given to PKG_CONFIG_USE_DEPENDENCY
PKG_CONFIG_DEPENDENCIES PKG_CONFIG_DEPENDENCIES
"gepetto-viewer"
"omniORB4" "omniORB4"
) )
# Copyright (c) 2014-2016 LAAS-CNRS # Copyright (c) 2014-2016, 2020 LAAS-CNRS
# Author: Mathieu Geisert # Author: Mathieu Geisert, Guilhem Saurel
# #
# This file is part of SceneViewer-corba. # This file is part of SceneViewer-corba.
# SceneViewer-corba is free software: you can redistribute it # SceneViewer-corba is free software: you can redistribute it
...@@ -115,16 +115,16 @@ ENDIF(NOT CLIENT_ONLY) ...@@ -115,16 +115,16 @@ ENDIF(NOT CLIENT_ONLY)
# }}} # }}}
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${${PROJECT_NAME}_SOURCES}) ADD_LIBRARY(${LIBRARY_NAME} SHARED ${${PROJECT_NAME}_SOURCES})
TARGET_INCLUDE_DIRECTORIES(${LIBRARY_NAME} PUBLIC ${CMAKE_BINARY_DIR}/src) TARGET_INCLUDE_DIRECTORIES(${LIBRARY_NAME} PRIVATE ${CMAKE_BINARY_DIR}/src)
ADD_DEPENDENCIES (${LIBRARY_NAME} generate_idl_cpp) ADD_DEPENDENCIES (${LIBRARY_NAME} generate_idl_cpp)
ADD_DEPENDENCIES (${LIBRARY_NAME} generate_idl_python) ADD_DEPENDENCIES (${LIBRARY_NAME} generate_idl_python)
IF(NOT CLIENT_ONLY) IF(NOT CLIENT_ONLY)
PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} gepetto-viewer) TARGET_LINK_LIBRARIES(${LIBRARY_NAME} gepetto-viewer::gepetto-viewer)
ENDIF(NOT CLIENT_ONLY) ENDIF(NOT CLIENT_ONLY)
PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} omniORB4) PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} omniORB4)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${QT_LIBRARIES}) TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${QT_LIBRARIES})
INSTALL(TARGETS ${LIBRARY_NAME} DESTINATION lib) INSTALL(TARGETS ${PROJECT_NAME} EXPORT ${TARGETS_EXPORT_NAME} DESTINATION lib)
# {{{ Python client: install Python files # {{{ Python client: install Python files
MAKE_DIRECTORY(${CMAKE_CURRENT_BINARY_DIR}/gepetto/viewer/corba) MAKE_DIRECTORY(${CMAKE_CURRENT_BINARY_DIR}/gepetto/viewer/corba)
......
# Copyright 2016 CNRS-LAAS # Copyright 2016, 2020 CNRS-LAAS
# #
# Author: Joseph Mirabel # Authors: Joseph Mirabel, Guilhem Saurel
# #
# This file is part of hpp-gui # This file is part of hpp-gui
# hpp-gui is free software: you can redistribute it and/or modify # hpp-gui is free software: you can redistribute it and/or modify
...@@ -29,19 +29,12 @@ IF(PROJECT_USE_QT4) ...@@ -29,19 +29,12 @@ IF(PROJECT_USE_QT4)
ENDIF(PROJECT_USE_QT4) ENDIF(PROJECT_USE_QT4)
ADD_DEFINITIONS(${QT_DEFINITIONS}) ADD_DEFINITIONS(${QT_DEFINITIONS})
MACRO(ADD_TESTCASE NAME GENERATED) MACRO(ADD_TESTCASE NAME)
IF (${GENERATED} STREQUAL TRUE) ADD_UNIT_TEST(${NAME} ${NAME}.cc)
ADD_UNIT_TEST(${NAME} ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.cc) TARGET_LINK_LIBRARIES(${NAME} ${QT_LIBRARIES} gepetto-viewer::gepetto-viewer)
ELSE()
ADD_UNIT_TEST(${NAME} ${NAME}.cc)
ENDIF()
TARGET_LINK_LIBRARIES(${NAME} ${QT_LIBRARIES})
PKG_CONFIG_USE_DEPENDENCY(${NAME} gepetto-viewer)
ENDMACRO(ADD_TESTCASE) ENDMACRO(ADD_TESTCASE)
ADD_TESTCASE (colormap FALSE) ADD_TESTCASE(colormap)
# ADD_TESTCASE (osgviewerQt FALSE) # ADD_TESTCASE(osgviewerQt)
ADD_PYTHON_UNIT_TEST("py-trivial" "tests/trivial.py" "src") ADD_PYTHON_UNIT_TEST("py-trivial" "tests/trivial.py" "src")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment