mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Moved listmodes test program to tests directory.
This commit is contained in:
parent
afb1c68791
commit
9e1031a35a
@ -5,8 +5,6 @@ link_libraries(libglfwStatic ${GLFW_LIBRARIES} ${OPENGL_glu_LIBRARY})
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../include ${OPENGL_INCLUDE_DIR})
|
||||
|
||||
add_executable(listmodes listmodes.c)
|
||||
|
||||
if(APPLE)
|
||||
# Set fancy names for bundles
|
||||
add_executable(Boing MACOSX_BUNDLE boing.c)
|
||||
@ -25,21 +23,17 @@ else(APPLE)
|
||||
endif(APPLE)
|
||||
|
||||
set(WINDOWS_BINARIES boing gears heightmap splitview triangle wave)
|
||||
set(CONSOLE_BINARIES listmodes)
|
||||
|
||||
if(MSVC)
|
||||
# Tell MSVC to use main instead of WinMain for Windows subsystem executables
|
||||
set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES}
|
||||
set_target_properties(${WINDOWS_BINARIES}
|
||||
PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup")
|
||||
endif(MSVC)
|
||||
|
||||
if(CYGWIN)
|
||||
# Set cross-compile and subsystem compile and link flags
|
||||
set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES}
|
||||
PROPERTIES COMPILE_FLAGS "-mno-cygwin")
|
||||
set_target_properties(${WINDOWS_BINARIES}
|
||||
PROPERTIES COMPILE_FLAGS "-mno-cygwin"
|
||||
PROPERTIES LINK_FLAGS "-mno-cygwin -mwindows")
|
||||
set_target_properties(${CONSOLE_BINARIES}
|
||||
PROPERTIES LINK_FLAGS "-mno-cygwin -mconsole")
|
||||
endif(CYGWIN)
|
||||
|
||||
|
@ -8,6 +8,7 @@ add_executable(events events.c)
|
||||
add_executable(fsfocus fsfocus.c)
|
||||
add_executable(iconify iconify.c getopt.c)
|
||||
add_executable(joysticks joysticks.c)
|
||||
add_executable(listmodes listmodes.c)
|
||||
add_executable(peter peter.c)
|
||||
add_executable(reopen reopen.c)
|
||||
add_executable(version version.c getopt.c)
|
||||
@ -29,7 +30,8 @@ else()
|
||||
endif(APPLE)
|
||||
|
||||
set(WINDOWS_BINARIES accuracy sharing tearing windows)
|
||||
set(CONSOLE_BINARIES defaults events fsaa fsfocus iconify joysticks peter reopen version)
|
||||
set(CONSOLE_BINARIES defaults events fsaa fsfocus iconify joysticks listmodes
|
||||
peter reopen version)
|
||||
|
||||
if(MSVC)
|
||||
# Tell MSVC to use main instead of WinMain for Windows subsystem executables
|
||||
|
Loading…
Reference in New Issue
Block a user