Fix of compilation on Linux & OSX: Cannot create a "slic3r" executable
next to a "slic3r" directory.
This commit is contained in:
parent
681e9f03b3
commit
8f01266ca4
1 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,11 @@ add_subdirectory(slic3r)
|
||||||
|
|
||||||
# Create a slic3r executable
|
# Create a slic3r executable
|
||||||
add_executable(slic3r slic3r.cpp)
|
add_executable(slic3r slic3r.cpp)
|
||||||
|
if(SLIC3R_GUI)
|
||||||
|
set_target_properties(slic3r PROPERTIES OUTPUT_NAME "slic3r-gui")
|
||||||
|
else()
|
||||||
|
set_target_properties(slic3r PROPERTIES OUTPUT_NAME "slic3r-console")
|
||||||
|
endif()
|
||||||
target_link_libraries(slic3r libslic3r libslic3r_gui ${wxWidgets_LIBRARIES} ${CURL_LIBRARIES})
|
target_link_libraries(slic3r libslic3r libslic3r_gui ${wxWidgets_LIBRARIES} ${CURL_LIBRARIES})
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
# add_compile_options(-stdlib=libc++)
|
# add_compile_options(-stdlib=libc++)
|
||||||
|
|
Loading…
Add table
Reference in a new issue