Moved listmodes test program to tests directory.

This commit is contained in:
Camilla Berglund
2010-10-04 21:14:58 +02:00
parent afb1c68791
commit 9e1031a35a
3 changed files with 5 additions and 9 deletions
+2 -8
View File
@@ -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)