@ -17,14 +17,14 @@ set(VERSION_MINOR "9")
set ( VERSION_PATCHLEVEL "10" )
set ( PROJECT_BUGREPORT_PATH "http://sourceforge.net/projects/libvncserver" )
set ( CMAKE_C_FLAGS "-O2 -W -Wall -g" )
set ( LIBVNCSERVER_DIR ${ CMAKE_ SOURCE_DIR} /libvncserver )
set ( COMMON_DIR ${ CMAKE_ SOURCE_DIR} /common )
set ( LIBVNCCLIENT_DIR ${ CMAKE_ SOURCE_DIR} /libvncclient )
set ( LIBVNCSRVTEST_DIR ${ CMAKE_ SOURCE_DIR} /examples )
set ( LIBVNCCLITEST_DIR ${ CMAKE_ SOURCE_DIR} /client_examples )
set ( LIBVNCSERVER_DIR ${ CMAKE_ CURRENT_ SOURCE_DIR} /libvncserver )
set ( COMMON_DIR ${ CMAKE_ CURRENT_ SOURCE_DIR} /common )
set ( LIBVNCCLIENT_DIR ${ CMAKE_ CURRENT_ SOURCE_DIR} /libvncclient )
set ( LIBVNCSRVTEST_DIR ${ CMAKE_ CURRENT_ SOURCE_DIR} /examples )
set ( LIBVNCCLITEST_DIR ${ CMAKE_ CURRENT_ SOURCE_DIR} /client_examples )
include_directories ( ${ CMAKE_ SOURCE_DIR} ${ CMAKE _BINARY_DIR} ${ CMAKE_ SOURCE_DIR} /libvncserver ${ CMAKE _SOURCE_DIR} /common )
include_directories ( ${ CMAKE_ CURRENT_ SOURCE_DIR} ${ CMAKE _CURRENT _BINARY_DIR} ${ CMAKE_ CURRENT_ SOURCE_DIR} /libvncserver ${ CMAKE _CURRENT _SOURCE_DIR} /common )
find_package ( ZLIB )
find_package ( JPEG )
@ -167,8 +167,8 @@ TEST_BIG_ENDIAN(LIBVNCSERVER_WORDS_BIGENDIAN)
# L I B V N C S E R V E R _ E N O E N T _ W O R K A R O U N D
# i n l i n e
configure_file ( ${ CMAKE_ SOURCE_DIR} /rfb/rfbconfig.h.cmake ${ CMAKE_BINARY_DIR } /rfb/rfbconfig.h )
configure_file ( ${ CMAKE_ SOURCE_DIR} /rfb/rfbint.h.cmake ${ CMAKE_BINARY_DIR } /rfb/rfbint.h )
configure_file ( ${ CMAKE_ CURRENT_ SOURCE_DIR} /rfb/rfbconfig.h.cmake ${ CMAKE_BINARY_DIR } /rfb/rfbconfig.h )
configure_file ( ${ CMAKE_ CURRENT_ SOURCE_DIR} /rfb/rfbint.h.cmake ${ CMAKE_BINARY_DIR } /rfb/rfbint.h )
set ( LIBVNCSERVER_SOURCES
$ { L I B V N C S E R V E R _ D I R } / m a i n . c
@ -280,6 +280,7 @@ target_link_libraries(vncclient
$ { A D D I T I O N A L _ L I B S }
$ { Z L I B _ L I B R A R I E S }
$ { J P E G _ L I B R A R I E S }
$ { G N U T L S _ L I B R A R I E S }
)
target_link_libraries ( vncserver
$ { A D D I T I O N A L _ L I B S }
@ -353,16 +354,16 @@ if(HAVE_FFMPEG)
endif ( HAVE_FFMPEG )
file ( MAKE_DIRECTORY ${ CMAKE_ BINARY_DIR} /examples )
file ( MAKE_DIRECTORY ${ CMAKE_ CURRENT_ BINARY_DIR} /examples )
foreach ( test ${ LIBVNCSERVER_TESTS } )
add_executable ( examples/ ${ test } ${ LIBVNCSRVTEST_DIR } / ${ test } .c )
target_link_libraries ( examples/ ${ test } vncserver ${ CMAKE_THREAD_LIBS_INIT } )
endforeach ( test ${ LIBVNCSERVER_TESTS } )
file ( MAKE_DIRECTORY ${ CMAKE_ BINARY_DIR} /client_examples )
file ( MAKE_DIRECTORY ${ CMAKE_ CURRENT_ BINARY_DIR} /client_examples )
foreach ( test ${ LIBVNCCLIENT_TESTS } )
add_executable ( client_examples/ ${ test } ${ LIBVNCCLITEST_DIR } / ${ test } .c ${ LIBVNCCLITEST_DIR } / ${ ${test } _EXTRA_SOURCES} )
target_link_libraries ( client_examples/ ${ test } vncclient ${ CMAKE_THREAD_LIBS_INIT } ${ GNUTLS_LIBRARIES} ${ X11_LIBRARIES} ${ SDL_LIBRARY } ${ FFMPEG_LIBRARIES } )
target_link_libraries ( client_examples/ ${ test } vncclient ${ CMAKE_THREAD_LIBS_INIT } ${ X11_LIBRARIES} ${ SDL_LIBRARY } ${ FFMPEG_LIBRARIES } )
endforeach ( test ${ LIBVNCCLIENT_TESTS } )
install_targets ( /lib vncserver )