+ LIST(APPEND FREEGLUT_SRCS
+ src/mswin/fg_cursor_mswin.c
+ src/mswin/fg_display_mswin.c
+ src/mswin/fg_ext_mswin.c
+ src/mswin/fg_gamemode_mswin.c
+ src/mswin/fg_init_mswin.c
+ src/mswin/fg_internal_mswin.h
+ src/mswin/fg_input_devices_mswin.c
+ src/mswin/fg_joystick_mswin.c
+ src/mswin/fg_main_mswin.c
+ src/mswin/fg_menu_mswin.c
+ src/mswin/fg_spaceball_mswin.c
+ src/mswin/fg_state_mswin.c
+ src/mswin/fg_structure_mswin.c
+ src/mswin/fg_window_mswin.c
+ ${CMAKE_BINARY_DIR}/freeglut.rc # generated below from freeglut.rc.in
+ )
+ IF (MSVC AND NOT CMAKE_CL_64)
+ # .def file only for 32bit Windows builds (TODO: MSVC only right
+ # now, needed for any other Windows platform?)
+ LIST(APPEND FREEGLUT_SRCS
+ ${CMAKE_BINARY_DIR}/freeglutdll.def # generated below from src/freeglutdll.def.in
+ )
+ ENDIF()
+
+ELSEIF(ANDROID)
+ LIST(APPEND FREEGLUT_SRCS
+ src/android/native_app_glue/android_native_app_glue.c
+ src/android/native_app_glue/android_native_app_glue.h
+ src/android/fg_internal_android.h
+ src/android/fg_cursor_android.c
+ src/android/fg_ext_android.c
+ src/android/fg_gamemode_android.c
+ src/android/fg_init_android.c
+ src/android/fg_input_devices_android.c
+ src/android/fg_joystick_android.c
+ src/android/fg_main_android.c
+ src/android/fg_main_android.h
+ src/android/fg_runtime_android.c
+ src/android/fg_spaceball_android.c
+ src/android/fg_state_android.c
+ src/android/fg_structure_android.c
+ src/android/fg_window_android.c
+ )
+ELSE()
+ LIST(APPEND FREEGLUT_SRCS
+ src/x11/fg_cursor_x11.c
+ src/x11/fg_ext_x11.c
+ src/x11/fg_gamemode_x11.c
+ src/x11/fg_glutfont_definitions_x11.c
+ src/x11/fg_init_x11.c
+ src/x11/fg_internal_x11.h
+ src/x11/fg_input_devices_x11.c
+ src/x11/fg_joystick_x11.c
+ src/x11/fg_main_x11.c
+ src/x11/fg_menu_x11.c
+ src/x11/fg_spaceball_x11.c
+ src/x11/fg_state_x11.c
+ src/x11/fg_structure_x11.c
+ src/x11/fg_window_x11.c
+ src/x11/fg_xinput_x11.c
+ )
+ IF(NOT(FREEGLUT_GLES2 OR FREEGLUT_GLES1))
+ LIST(APPEND FREEGLUT_SRCS
+ src/x11/fg_internal_x11_glx.h
+ src/x11/fg_display_x11_glx.c
+ src/x11/fg_state_x11_glx.c
+ src/x11/fg_state_x11_glx.h
+ src/x11/fg_window_x11_glx.c
+ src/x11/fg_window_x11_glx.h
+ )
+ ENDIF()
+ENDIF()
+IF(FREEGLUT_GLES2 OR FREEGLUT_GLES1)
+ LIST(APPEND FREEGLUT_SRCS
+ src/egl/fg_internal_egl.h
+ src/egl/fg_display_egl.c
+ src/egl/fg_ext_egl.c
+ src/egl/fg_init_egl.c
+ src/egl/fg_init_egl.h
+ src/egl/fg_state_egl.c
+ src/egl/fg_state_egl.h
+ src/egl/fg_structure_egl.c
+ src/egl/fg_structure_egl.h
+ src/egl/fg_window_egl.c
+ src/egl/fg_window_egl.h
+ )