cmake_minimum_required(VERSION 3.1)

project(SofaOpenglVisual_test)

set(SOURCE_FILES
    OglLabel_test.cpp
)

## MAC-OS crash when we are testing opengl feature.
if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
    list(APPEND SOURCE_FILES
        Light_test.cpp
        LightManager_test.cpp
        ClipPlane_test.cpp)
endif()


add_executable(${PROJECT_NAME} ${SOURCE_FILES})
target_link_libraries(${PROJECT_NAME} SofaGTestMain SofaTest)

add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME})
