summaryrefslogtreecommitdiffstats
path: root/Tests/FindGLUT/Test/CMakeLists.txt
blob: 0f4e5367397dd720d2900d2f2010cd0b457c1ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 3.21)
project(TestFindGLUT C)
include(CTest)

find_package(GLUT REQUIRED)

add_executable(testglut_tgt main.c)
target_link_libraries(testglut_tgt GLUT::GLUT)
add_test(NAME testglut_tgt COMMAND testglut_tgt)

add_executable(testglut_var main.c)
target_include_directories(testglut_var PRIVATE ${GLUT_INCLUDE_DIRS})
target_link_libraries(testglut_var PRIVATE ${GLUT_LIBRARIES})
add_test(NAME testglut_var COMMAND testglut_var)

set_tests_properties(testglut_tgt testglut_var
    PROPERTIES WILL_FAIL true)