# Generated by "yarp cmake" & Santiago Morante & Juan G. Victores 2012, Juan G. Victores 2014

if(ENABLE_robotDevastation)

# Find YARP.  Point the YARP_DIR environment variable at your build.
find_package(YARP REQUIRED)

add_executable(robotDevastation main.cpp
                                RobotDevastation.hpp
                                RobotDevastation.cpp)

target_include_directories(robotDevastation PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
                                                   ${YARP_INCLUDE_DIRS})

target_link_libraries(robotDevastation YARP::YARP_OS
                                       UtilsLib
                                       MusicLib
                                       MentalMapLib
                                       InputLib
                                       NetworkLib
                                       RobotLib
                                       StateMachineLib
                                       ImageLib
                                       UserInterfaceLib
                                       GameStatesLib)

install(TARGETS robotDevastation DESTINATION bin)

endif()

# Generated by "yarp cmake" & Santiago Morante & Juan G. Victores 2012, Juan G. Victores 2014

if(ENABLE_robotDevastation)

# Find YARP.  Point the YARP_DIR environment variable at your build.
find_package(YARP REQUIRED)

add_executable(robotDevastation main.cpp
                                RobotDevastation.hpp
                                RobotDevastation.cpp)

target_include_directories(robotDevastation PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
                                                   ${YARP_INCLUDE_DIRS})

target_link_libraries(robotDevastation YARP::YARP_OS
                                       UtilsLib
                                       MusicLib
                                       MentalMapLib
                                       InputLib
                                       NetworkLib
                                       RobotLib
                                       StateMachineLib
                                       ImageLib
                                       UserInterfaceLib
                                       GameStatesLib)

target_compile_definitions(robotDevastation PUBLIC SDL_MAIN_HANDLED)

install(TARGETS robotDevastation DESTINATION bin)

endif()

Add SDL_MAIN_HANDLED definition to last RD program
Add SDL_MAIN_HANDLED definition to last RD program
