File: CMakeLists.txt

package info (click to toggle)
wxpython4.0 4.2.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 221,752 kB
  • sloc: cpp: 962,555; python: 230,573; ansic: 170,731; makefile: 51,756; sh: 9,342; perl: 1,564; javascript: 584; php: 326; xml: 200
file content (35 lines) | stat: -rw-r--r-- 981 bytes parent folder | download | duplicates (2)
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
#############################################################################
# Name:        build/cmake/lib/net/CMakeLists.txt
# Purpose:     CMake file for net library
# Author:      Tobias Taschner
# Created:     2016-09-21
# Copyright:   (c) 2016 wxWidgets development team
# Licence:     wxWindows licence
#############################################################################

wx_append_sources(NET_FILES NET_CMN)

if(WIN32)
    wx_append_sources(NET_FILES NET_WIN32)
elseif(APPLE)
    wx_append_sources(NET_FILES NET_OSX)
endif()

if(UNIX AND NOT WIN32)
    wx_append_sources(NET_FILES NET_UNIX)
endif()

wx_add_library(wxnet IS_BASE ${NET_FILES})

if(WIN32)
    wx_lib_link_libraries(wxnet PRIVATE ws2_32)

    if(wxUSE_WEBREQUEST_WINHTTP)
        wx_lib_link_libraries(wxnet PRIVATE winhttp)
    endif()
endif()

if (wxUSE_WEBREQUEST_CURL)
    wx_lib_include_directories(wxnet ${CURL_INCLUDE_DIRS})
    wx_lib_link_libraries(wxnet PUBLIC ${CURL_LIBRARIES})
endif()