Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2020-03-06 17:16:46 +0300
committertamasmeszaros <meszaros.q@gmail.com>2020-03-06 17:16:46 +0300
commitb6aeffb618b2f09be1b655492934407302bdcb4e (patch)
tree74ea3a133568beff0f88357c583eb6eebd0a3f38 /src/CMakeLists.txt
parent3baea9b45847e00f3e202116703cf77aa38ed1c8 (diff)
Link libcurl and wxWidgets to libslic3r_gui
Also enhance and remove duplicate CURL search in cmake
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 11996af1a..b0eab9bcc 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -104,33 +104,7 @@ endif ()
# Add the Slic3r GUI library, libcurl, OpenGL and GLU libraries.
if (SLIC3R_GUI)
# target_link_libraries(PrusaSlicer ws2_32 uxtheme setupapi libslic3r_gui ${wxWidgets_LIBRARIES})
-target_link_libraries(PrusaSlicer libslic3r_gui ${wxWidgets_LIBRARIES})
-
- # Configure libcurl and its dependencies OpenSSL & zlib
- find_package(CURL REQUIRED)
- if (NOT WIN32)
- # Required by libcurl
- find_package(ZLIB REQUIRED)
- endif()
- target_include_directories(PrusaSlicer PRIVATE ${CURL_INCLUDE_DIRS})
- target_link_libraries(PrusaSlicer ${CURL_LIBRARIES} ${ZLIB_LIBRARIES})
- if (SLIC3R_STATIC)
- if (NOT APPLE)
- # libcurl is always linked dynamically to the system libcurl on OSX.
- # On other systems, libcurl is linked statically if SLIC3R_STATIC is set.
- target_compile_definitions(PrusaSlicer PRIVATE CURL_STATICLIB)
- endif()
- if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
- # As of now, our build system produces a statically linked libcurl,
- # which links the OpenSSL library dynamically.
- find_package(OpenSSL REQUIRED)
- message("OpenSSL include dir: ${OPENSSL_INCLUDE_DIR}")
- message("OpenSSL libraries: ${OPENSSL_LIBRARIES}")
- target_include_directories(PrusaSlicer PRIVATE ${OPENSSL_INCLUDE_DIR})
- target_link_libraries(PrusaSlicer ${OPENSSL_LIBRARIES})
- endif()
- endif()
-
+target_link_libraries(PrusaSlicer libslic3r_gui)
if (MSVC)
# Generate debug symbols even in release mode.
target_link_options(PrusaSlicer PUBLIC "$<$<CONFIG:RELEASE>:/DEBUG>")