summaryrefslogtreecommitdiffstats
path: root/Tests/FindGLUT/Test/CMakeLists.txt
blob: f6440b250f307d4068d5918bcf9e2105225d1343 (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_DIR})
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)