Fix build issues on Windows

This commit is contained in:
tamasmeszaros 2020-01-16 14:25:01 +01:00
parent fada7224f1
commit a1dc7a5c41
4 changed files with 4 additions and 2 deletions

View file

@ -19,7 +19,7 @@ int main(const int argc, const char * argv[])
{
using namespace Slic3r;
if (argc < 1) return EXIT_FAILURE;
if (argc <= 1) return EXIT_FAILURE;
DynamicPrintConfig cfg;
auto model = Model::read_from_file(argv[1], &cfg);

View file

@ -20,6 +20,7 @@ target_link_libraries(opencsg_example libslic3r)
target_include_directories(opencsg_example PRIVATE ${wxWidgets_INCLUDE_DIRS})
target_compile_definitions(opencsg_example PRIVATE ${wxWidgets_DEFINITIONS})
slic3r_remap_configs(OpenCSG::opencsg RelWithDebInfo Release)
target_link_libraries(opencsg_example ${wxWidgets_LIBRARIES}
OpenCSG::opencsg
GLEW::GLEW