]> git.lizzy.rs Git - irrlicht.git/blob - examples/CMakeLists.txt
Add basic test application that runs under CI
[irrlicht.git] / examples / CMakeLists.txt
1
2 set(IRREXAMPLES
3         01.HelloWorld
4         02.Quake3Map
5         03.CustomSceneNode
6         04.Movement
7         05.UserInterface
8         06.2DGraphics
9         07.Collision
10         08.SpecialFX
11         09.Meshviewer
12         10.Shaders
13         11.PerPixelLighting
14         12.TerrainRendering
15         13.RenderToTexture
16         15.LoadIrrFile
17         16.Quake3MapShader
18         18.SplitScreen
19         19.MouseAndJoystick
20         20.ManagedLights
21         21.Quake3Explorer
22         22.MaterialViewer
23         23.SMeshHandling
24         24.CursorControl
25         25.XmlHandling
26         26.OcclusionQuery
27         27.PostProcessing
28         28.CubeMapping
29         30.Profiling
30 )
31
32 if(WIN32)
33         list(APPEND IRREXAMPLES 14.Win32Window)
34 endif()
35 if(UNIX)
36         list(APPEND IRREXAMPLES AutomatedTest)
37 endif()
38
39 foreach(exname IN ITEMS ${IRREXAMPLES})
40         file(GLOB sources "${CMAKE_CURRENT_SOURCE_DIR}/${exname}/*.cpp")
41         add_executable(${exname} ${sources})
42
43         target_include_directories(${exname} PRIVATE
44                 ${CMAKE_SOURCE_DIR}/include
45                 ${CMAKE_CURRENT_SOURCE_DIR}/${exname}
46         )
47         target_link_libraries(${exname} IrrlichtMt)
48 endforeach()