-
Raphael Grimm authoredRaphael Grimm authored
CMakeLists.txt 1.25 KiB
# RobotAPI
cmake_minimum_required(VERSION 2.8)
#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()
find_package("ArmarXCore" REQUIRED
PATHS "$ENV{HOME}/armarx/Core/build"
)
include(${ArmarXCore_USE_FILE})
set(ARMARX_ENABLE_DEPENDENCY_VERSION_CHECK_DEFAULT TRUE)
set(ARMARX_ENABLE_AUTO_CODE_FORMATTING TRUE)
armarx_project("RobotAPI")
depends_on_armarx_package(ArmarXGui)
set(ArmarX_Simox_VERSION 2.3.59)
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 (Simox_FOUND)
setupSimoxExternalLibraries()
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()
endif()
add_subdirectory(source)
list(APPEND CPACK_DEBIAN_PACKAGE_DEPENDS "simox (= ${ArmarX_Simox_VERSION})")
install_project()
add_subdirectory(scenarios)