Newer
Older
#if(NOT DEFINED CMAKE_SUPPRESS_DEVELOPER_WARNINGS)
# set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS 1 CACHE INTERNAL "No dev warnings")
#endif()
if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
PATHS "$ENV{HOME}/armarx/Core/build"
set(ARMARX_ENABLE_DEPENDENCY_VERSION_CHECK_DEFAULT TRUE)
set(ARMARX_ENABLE_AUTO_CODE_FORMATTING TRUE)
depends_on_armarx_package(ArmarXGui)
set(ArmarX_Simox_VERSION 2.3.64)
option(REQUIRE_SIMOX "If enabled the Simox dependency is a required dependency" TRUE)
if(REQUIRE_SIMOX)
find_package(Simox ${ArmarX_Simox_VERSION} REQUIRED)
else()
find_package(Simox ${ArmarX_Simox_VERSION} QUIET)
endif()
if(ARMARX_USE_QT5)
if(Simox_USE_QT4)
message(FATAL_ERROR "ArmarX uses Qt5 and Simox uses Qt4")
endif()
else()
if(Simox_USE_QT5)
message(FATAL_ERROR "ArmarX uses Qt4 and Simox uses Qt5")
endif()
endif()
Manfred Kröhnert
committed
add_subdirectory(source)
list(APPEND CPACK_DEBIAN_PACKAGE_DEPENDS "simox (= ${ArmarX_Simox_VERSION})")
add_subdirectory(scenarios)