Skip to content
Snippets Groups Projects
Commit 5899cf05 authored by Ansgar Philippsen's avatar Ansgar Philippsen
Browse files

more fixes to spnav build

parent d8fcaae3
Branches
Tags
No related merge requests found
......@@ -239,7 +239,7 @@ if (ENABLE_GUI)
endif()
if (ENABLE_SPNAV)
find_package(SpNav REQUIRED)
#find_package(SpNav REQUIRED)
set(_SPNAV ON)
else()
set(_SPNAV OFF)
......
......@@ -52,11 +52,6 @@ if (_STATICPROPS)
else()
set(static_props 0)
endif()
if (ENABLE_SPNAV)
set(spnav_enabled 1)
else()
set(spnav_enabled 0)
endif()
if (FFTW_USE_THREADS)
set(fftw_use_threads 1)
else()
......
......@@ -30,7 +30,6 @@
#define OST_IMG_ENABLED @img_enabled@
#define OST_DOUBLE_PRECISION @double_prec@
#define OST_STATIC_PROPERTY_WORKAROUND @static_props@
#define OST_SPNAV_ENABLED @spnav_enabled@
#define OST_FFT_USE_THREADS @fftw_use_threads@
#define OST_NUMPY_SUPPORT_ENABLED @numpy_support@
#define OST_DEBIAN_STYLE_LIBEXEC @debian_style_libexec@
......
......@@ -172,9 +172,9 @@ gl_win.hh
scene_menu.hh
gosty_app.hh
admin.hh
module_config.hh
main.hh
main_area.hh
module_config.hh
perspective.hh
remote_site_loader.hh
scene_selection.hh
......@@ -429,13 +429,22 @@ if (ENABLE_IMG)
endif()
if (ENABLE_SPNAV)
set(spnav_enabled 1)
list(APPEND OST_GUI_SOURCES
input/spnav_input.cc
)
list(APPEND HEADERS_TO_BE_MOCCED
input/spnav_input.hh
)
else()
set(spnav_enabled 0)
endif()
set(config_hh_generator "CMake")
set(MODULE_CONFIG_HH_FILE "${CMAKE_CURRENT_SOURCE_DIR}/module_config.hh")
configure_file(module_config.hh.in ${MODULE_CONFIG_HH_FILE})
# the resulting file, module_config.hh, is already included in OST_GUI_HEADERS
if (APPLE)
set(ADDITIONAL_LIBRARIES "-framework Security")
endif()
......
......@@ -19,8 +19,14 @@
#ifndef OST_GUI_MODULE_CONFIG_HH
#define OST_GUI_MODULE_CONFIG_HH
/*
DO NOT EDIT, automatically generated by CMake
*/
#include <ost/base.hh>
#define OST_SPNAV_ENABLED 0
#if defined(OST_MODULE_OST_GUI)
# define DLLEXPORT_OST_GUI DLLEXPORT
#else
......
//------------------------------------------------------------------------------
// This file is part of the OpenStructure project <www.openstructure.org>
//
// Copyright (C) 2008-2011 by the OpenStructure authors
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License as published by the Free
// Software Foundation; either version 3.0 of the License, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
// details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this library; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//------------------------------------------------------------------------------
#ifndef OST_GUI_MODULE_CONFIG_HH
#define OST_GUI_MODULE_CONFIG_HH
/*
DO NOT EDIT, automatically generated by @config_hh_generator@
*/
#include <ost/base.hh>
#define OST_SPNAV_ENABLED @spnav_enabled@
#if defined(OST_MODULE_OST_GUI)
# define DLLEXPORT_OST_GUI DLLEXPORT
#else
# define DLLEXPORT_OST_GUI DLLIMPORT
#endif
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment