Pierre Ossman | a7769f2 | 2011-03-03 09:44:49 +0000 | [diff] [blame] | 1 | if(USE_INCLUDED_ZLIB) |
| 2 | add_subdirectory(zlib) |
| 3 | |
| 4 | set(ZLIB_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/common/zlib) |
| 5 | set(ZLIB_LIBRARIES zlib) |
| 6 | endif() |
| 7 | |
DRC | 2ff39b8 | 2011-07-28 08:38:59 +0000 | [diff] [blame] | 8 | if(USE_INCLUDED_FLTK) |
| 9 | add_subdirectory(fltk) |
| 10 | endif() |
| 11 | |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 12 | add_subdirectory(os) |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 13 | add_subdirectory(rdr) |
| 14 | add_subdirectory(network) |
| 15 | add_subdirectory(Xregion) |
| 16 | add_subdirectory(rfb) |
DRC | ce82f4b | 2011-08-23 20:35:06 +0000 | [diff] [blame^] | 17 | |
| 18 | # For any convenience libraries that are linked into libvnc.so, we need to |
| 19 | # explicitly build their corresponding sources using PIC. WIN32 is excluded |
| 20 | # because PIC code does not exist on that platform and MinGW complains if -fPIC |
| 21 | # is passed (additionally, libvnc is not used on Windows.) |
| 22 | |
| 23 | if(CMAKE_COMPILER_IS_GNUCXX AND (CMAKE_SIZEOF_VOID_P MATCHES 8) AND NOT WIN32) |
| 24 | set_target_properties(os rdr network Xregion rfb |
| 25 | PROPERTIES COMPILE_FLAGS -fPIC) |
| 26 | if(USE_INCLUDED_ZLIB) |
| 27 | set_target_properties(zlib PROPERTIES COMPILE_FLAGS -fPIC) |
| 28 | endif() |
| 29 | endif() |