blob: e0431e6230657ae7c528495ae5a758ddc25b402b [file] [log] [blame]
DRC180c0162010-10-27 07:20:27 +00001add_subdirectory(os)
DRC180c0162010-10-27 07:20:27 +00002add_subdirectory(rdr)
3add_subdirectory(network)
4add_subdirectory(Xregion)
5add_subdirectory(rfb)
DRCce82f4b2011-08-23 20:35:06 +00006
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 Ossman7b8ebff2016-01-04 14:10:25 +010012if(CMAKE_COMPILER_IS_GNUCXX AND NOT WIN32)
DRCce82f4b2011-08-23 20:35:06 +000013 set_target_properties(os rdr network Xregion rfb
14 PROPERTIES COMPILE_FLAGS -fPIC)
DRCce82f4b2011-08-23 20:35:06 +000015endif()