diff --git a/CMakeLists.txt b/CMakeLists.txt index b209730..4fa1220 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,9 +8,9 @@ if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/ext/glfw/src") "by calling \"git submodule update --init --recursive\"") endif() -option(NANOGUI_BUILD_EXAMPLE "Build NanoGUI example application?" ON) +option(NANOGUI_BUILD_EXAMPLE "Build NanoGUI example application?" OFF) option(NANOGUI_BUILD_SHARED "Build NanoGUI as a shared library?" ON) -option(NANOGUI_BUILD_PYTHON "Build a Python plugin for NanoGUI?" ON) +option(NANOGUI_BUILD_PYTHON "Build a Python plugin for NanoGUI?" OFF) set(NANOGUI_PYTHON_VERSION "" CACHE STRING "Python version to use for compiling the Python plugin") # Required libraries for linking against nanogui (all targets) @@ -220,10 +220,10 @@ endif() if (NANOGUI_BUILD_SHARED AND NOT ${U_CMAKE_BUILD_TYPE} MATCHES DEBUG) if (APPLE) # Strip .dylib library on OSX - add_custom_command(TARGET nanogui POST_BUILD COMMAND strip -u -r ${CMAKE_CURRENT_BINARY_DIR}/libnanogui.dylib) + add_custom_command(TARGET nanogui POST_BUILD COMMAND strip -u -r $) elseif(UNIX) # Strip .so library on Linux - add_custom_command(TARGET nanogui POST_BUILD COMMAND strip ${CMAKE_CURRENT_BINARY_DIR}/libnanogui.so) + add_custom_command(TARGET nanogui POST_BUILD COMMAND strip $) endif() endif()