aboutsummaryrefslogtreecommitdiffstats
path: root/common/CMakeLists.txt
blob: 6fd1e106c1b5080ccd394cec802f73fdcb8366d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
add_subdirectory(os)
add_subdirectory(rdr)
add_subdirectory(network)
add_subdirectory(rfb)

# For any convenience libraries that are linked into libvnc.so, we need to
# explicitly build their corresponding sources using PIC.  WIN32 is excluded
# because PIC code does not exist on that platform and MinGW complains if -fPIC
# is passed (additionally, libvnc is not used on Windows.)

if(NOT WIN32)
  set_target_properties(os rdr network rfb
    PROPERTIES COMPILE_FLAGS -fPIC)
endif()