Simplified dependencies.

This commit is contained in:
bubnikv 2018-09-21 21:16:09 +02:00
parent 49c3d59897
commit bb386bb148
4 changed files with 5 additions and 12 deletions

View file

@ -53,6 +53,8 @@ endif()
add_subdirectory(slic3r)
# Create a slic3r executable
#FIXME add Windows resource file
#add_executable(slic3r slic3r.cpp slic3r.rc)
add_executable(slic3r slic3r.cpp)
if(SLIC3R_GUI)
set_target_properties(slic3r PROPERTIES OUTPUT_NAME "slic3r-gui")
@ -71,7 +73,7 @@ endif ()
# Add the Slic3r GUI library, libcurl, OpenGL and GLU libraries.
if (SLIC3R_GUI)
target_link_libraries(slic3r libslic3r_gui ${wxWidgets_LIBRARIES} ${CURL_LIBRARIES})
target_link_libraries(slic3r libslic3r_gui ${wxWidgets_LIBRARIES})
# Configure libcurl & OpenSSL
find_package(CURL REQUIRED)

View file

@ -165,7 +165,6 @@ target_link_libraries(libslic3r
qhull
semver
${TBB_LIBRARIES}
# ${wxWidgets_LIBRARIES}
)
if(SLIC3R_PROFILE)

View file

@ -154,7 +154,7 @@ void Layer::make_fills()
layerm->fills.clear();
make_fill(*layerm, layerm->fills);
#ifndef NDEBUG
for (size_t i = 0; i < layerm.fills.entities.size(); ++ i)
for (size_t i = 0; i < layerm->fills.entities.size(); ++ i)
assert(dynamic_cast<ExtrusionEntityCollection*>(layerm->fills.entities[i]) != NULL);
#endif
}