summaryrefslogtreecommitdiffstats
path: root/src/network/CMakeLists.txt
blob: b56019d4df63c90ae675257ab2efdf584ca838d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_BINARY_DIR}/include
  ${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
  ${CMAKE_SOURCE_DIR}/src/tools
)

link_directories()


##### network (static)

set( target network )
set( _SRC_ qdns.cpp
           qftp.cpp
           qhostaddress.cpp
           qhttp.cpp
           qnetwork.cpp
           qserversocket.cpp
           qsocket.cpp
           qsocketdevice.cpp
           qsocketdevice_unix.cpp
)

tde_add_library( ${target} STATIC_PIC

  SOURCES
        ${_SRC_}

  DEPENDENCIES
    tqt-includes
)

tqt_automoc( ${target}-static )

list( APPEND tqtlib_embed ${target}-static )
set( tqtlib_embed ${tqtlib_embed} PARENT_SCOPE )

set_property( TARGET ${target}-static
              APPEND PROPERTY COMPILE_DEFINITIONS
              ${NO_IPV6}
)