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:
authorbubnikv <bubnikv@gmail.com>2018-09-19 19:05:58 +0300
committerbubnikv <bubnikv@gmail.com>2018-09-19 19:05:58 +0300
commitad54266395a46cb226637cbd8deb3a68ebfaf539 (patch)
treee641abdc3a304eca4719c0e199770a7c1fa88f96 /src/CMakeLists.txt
parentd7f1c8670f6a26792008baaeaf638bf051f963ab (diff)
Fixed GUI build
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index cf37a82c9..fcf7c17dc 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -43,6 +43,13 @@ else()
endif()
add_subdirectory(libslic3r)
+
+if (SLIC3R_GUI)
+ message(STATUS "WXWIN environment set to: $ENV{WXWIN}")
+ find_package(wxWidgets REQUIRED COMPONENTS base core adv html gl)
+ include(${wxWidgets_USE_FILE})
+endif()
+
add_subdirectory(slic3r)
# Create a slic3r executable
@@ -64,10 +71,6 @@ endif ()
# Add the Slic3r GUI library, libcurl, OpenGL and GLU libraries.
if (SLIC3R_GUI)
- message(STATUS "WXWIN environment set to: $ENV{WXWIN}")
- find_package(wxWidgets REQUIRED COMPONENTS base core adv html gl)
- include(${wxWidgets_USE_FILE})
-
target_link_libraries(slic3r libslic3r_gui ${wxWidgets_LIBRARIES} ${CURL_LIBRARIES})
# Configure libcurl & OpenSSL