blob: 6ad923d2f892c583db2131220f4cca8584cd278e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
link_libraries(
${waffle_libname}
waffle_test
)
set(gl_basic_test_sources
gl_basic_test.c
)
if(waffle_on_mac)
list(APPEND gl_basic_test_sources
gl_basic_cocoa.m
)
endif()
# CMake will pass to the C compiler only C sources. CMake does not recognize the
# .m extension and ignores any such files in the source lists. To coerce CMake
# to pass .m files to the compiler, we must lie and claim that they are
# C sources.
set_source_files_properties(
${gl_basic_test_sources}
PROPERTIES LANGUAGE C
)
add_executable(gl_basic_test
${gl_basic_test_sources}
)
|