if(WIN32)
add_subdirectory(win)
- if(CMAKE_C_COMPILER_ID STREQUAL GNU)
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-subsystem,windows")
- endif(CMAKE_C_COMPILER_ID STREQUAL GNU)
else()
# No interest in building x related parts on Apple
if(NOT APPLE)
set(VNCVIEWER_SOURCES ${VNCVIEWER_SOURCES} X11PixelBuffer.cxx)
endif()
-add_executable(vncviewer ${VNCVIEWER_SOURCES})
+if(WIN32)
+ add_executable(vncviewer WIN32 ${VNCVIEWER_SOURCES})
+else()
+ add_executable(vncviewer ${VNCVIEWER_SOURCES})
+endif()
target_link_libraries(vncviewer rfb network rdr os Xregion ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES})