DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 1 | add_subdirectory(os) |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 2 | add_subdirectory(rdr) |
| 3 | add_subdirectory(network) |
| 4 | add_subdirectory(Xregion) |
| 5 | add_subdirectory(rfb) |
DRC | ce82f4b | 2011-08-23 20:35:06 +0000 | [diff] [blame] | 6 | |
| 7 | # For any convenience libraries that are linked into libvnc.so, we need to |
| 8 | # explicitly build their corresponding sources using PIC. WIN32 is excluded |
| 9 | # because PIC code does not exist on that platform and MinGW complains if -fPIC |
| 10 | # is passed (additionally, libvnc is not used on Windows.) |
| 11 | |
Pierre Ossman | 7b8ebff | 2016-01-04 14:10:25 +0100 | [diff] [blame] | 12 | if(CMAKE_COMPILER_IS_GNUCXX AND NOT WIN32) |
DRC | ce82f4b | 2011-08-23 20:35:06 +0000 | [diff] [blame] | 13 | set_target_properties(os rdr network Xregion rfb |
| 14 | PROPERTIES COMPILE_FLAGS -fPIC) |
DRC | ce82f4b | 2011-08-23 20:35:06 +0000 | [diff] [blame] | 15 | endif() |