forked from OpenCPN/OpenCPN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Curl.cmake
32 lines (27 loc) · 1.08 KB
/
Curl.cmake
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
##---------------------------------------------------------------------------
## Author: Pavel Kalian, Sean D'Epagnier
## Copyright:
## License: GPLv3+
##---------------------------------------------------------------------------
# configure curl library
INCLUDE_DIRECTORIES(src/wxcurl)
IF(WIN32)
IF(MSVC)
SET(CURL_LIBRARIES "${CMAKE_SOURCE_DIR}/buildwin/libcurl.lib")
INSTALL(FILES "buildwin/libcurl.dll" DESTINATION ".")
#INSTALL(FILES "buildwin/libeay32.dll" DESTINATION ".")
#INSTALL(FILES "buildwin/ssleay32.dll" DESTINATION ".")
INSTALL(FILES "buildwin/zlib1.dll" DESTINATION ".")
#INSTALL(FILES "buildwin/curl-ca-bundle.crt" DESTINATION ".")
ELSE(MSVC) ## mingw
SET(CURL_LIBRARIES "curl.dll")
INSTALL(FILES "buildwin/libcurl.dll" DESTINATION ".")
ENDIF(MSVC)
#TARGET_LINK_LIBRARIES(${PACKAGE_NAME} ${CURL_LIBRARIES})
INCLUDE_DIRECTORIES(src/wxcurl/include)
ENDIF(WIN32)
IF(UNIX)
FIND_PACKAGE(CURL REQUIRED)
INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIR})
#TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} ${CURL_LIBRARIES} )
ENDIF(UNIX)