cmake_minimum_required(VERSION 3.10.2)
include_directories(${QPOASES_INCLUDE_DIR})

casadi_plugin(Conic qpoases
  qpoases_interface.hpp
  qpoases_interface.cpp
  qpoases_interface_meta.cpp)

casadi_plugin_link_libraries(Conic qpoases ${QPOASES_LIBRARIES})

if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set_target_properties(casadi_conic_qpoases PROPERTIES COMPILE_FLAGS "-Wno-overloaded-virtual")
endif()
