mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-31 17:22:13 +08:00
Add CMAKE option to turn on the gui when building slic3r.cpp (defaults to off)
This commit is contained in:
parent
5ff201c53f
commit
a3327df92f
@ -1,7 +1,7 @@
|
||||
cmake_minimum_required (VERSION 3.9)
|
||||
project (slic3r)
|
||||
|
||||
|
||||
option(Enable_GUI "Use the wxWidgets code in slic3r.cpp" OFF)
|
||||
option(GUI_BUILD_TESTS "Build tests for Slic3r GUI." ON)
|
||||
option(SLIC3R_BUILD_TESTS "Build tests for libslic3r." ON)
|
||||
option(SLIC3R_STATIC "Build and link Slic3r statically." ON)
|
||||
@ -22,6 +22,10 @@ if(DEFINED ENV{SLIC3R_VAR_ABS_PATH})
|
||||
set(CMAKE_CXX_FLAGS "-DVAR_ABS_PATH=$ENV{SLIC3R_VAR_ABS_PATH}")
|
||||
endif(DEFINED ENV{SLIC3R_VAR_ABS_PATH})
|
||||
|
||||
if(Enable_GUI)
|
||||
set(CMAKE_CXX_FLAGS "-DUSE_WX")
|
||||
endif(Enable_GUI)
|
||||
|
||||
if($ENV{TRAVIS})
|
||||
if($ENV{TRAVIS} STREQUAL "true")
|
||||
message(STATUS "Building on Travis-CI.")
|
||||
@ -231,7 +235,6 @@ set(LIBSLIC3R_DEPENDS
|
||||
${Boost_LIBRARIES}
|
||||
)
|
||||
|
||||
|
||||
IF(wxWidgets_FOUND)
|
||||
MESSAGE("wx found!")
|
||||
INCLUDE("${wxWidgets_USE_FILE}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user