Skip to content
Snippets Groups Projects
Commit 684113c9 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

qmake build from separate directory, fixes in cmake search for installed software

parent fc357bbb
No related branches found
No related tags found
No related merge requests found
...@@ -171,7 +171,7 @@ DEPENDPATH += $$PWD/../Fit/Factory/inc ...@@ -171,7 +171,7 @@ DEPENDPATH += $$PWD/../Fit/Factory/inc
# generate ROOT dictionaries # generate ROOT dictionaries
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
BORNAGAIN_ROOT_DICT_FOR_CLASSES = inc/App.h inc/AppLinkDef.h BORNAGAIN_ROOT_DICT_FOR_CLASSES = inc/App.h inc/AppLinkDef.h
BORNAGAIN_ROOT_DICT_INCLUDES = ../Core/Tools/inc BORNAGAIN_ROOT_DICT_INCLUDES = $$PWD/../Core/Tools/inc
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# general project settings # general project settings
......
No preview for this file type
...@@ -157,7 +157,7 @@ keepaspectratio]{results2_2.png}% ...@@ -157,7 +157,7 @@ keepaspectratio]{results2_2.png}%
%\chapter{Working with BornAgain} %\chapter{Working with BornAgain}
\input{Introduction} \input{Introduction}
\input{QuickStart} \input{QuickStart}
%\input{SoftwareArchitecture} \input{SoftwareArchitecture}
%\input{Installation} %\input{Installation}
%\input{Fitting} %\input{Fitting}
%\input{Examples} %\input{Examples}
......
...@@ -17,7 +17,7 @@ find_path(FFTW_INCLUDE_DIR fftw3.h ...@@ -17,7 +17,7 @@ find_path(FFTW_INCLUDE_DIR fftw3.h
/usr/local/include /usr/local/include
/usr/include /usr/include
/opt/fftw3/include /opt/fftw3/include
HINTS /opt/local/include /opt/local/include
DOC "Specify the directory containing fftw3.h" DOC "Specify the directory containing fftw3.h"
) )
...@@ -39,6 +39,14 @@ if(FFTW_INCLUDE_DIR AND FFTW_LIBRARY) ...@@ -39,6 +39,14 @@ if(FFTW_INCLUDE_DIR AND FFTW_LIBRARY)
endif() endif()
endif() endif()
if( NOT FFTW_FOUND )
if( FFTW_FIND_REQUIRED )
message( FATAL_ERROR "FindFFTW: can't find fftw3 header or library" )
endif()
endif()
set(FFTW_LIBRARIES ${FFTW_LIBRARY}) set(FFTW_LIBRARIES ${FFTW_LIBRARY})
mark_as_advanced(FFTW_FOUND FFTW_LIBRARY FFTW_INCLUDE_DIR) mark_as_advanced(FFTW_FOUND FFTW_LIBRARY FFTW_INCLUDE_DIR)
...@@ -78,7 +78,9 @@ function(ROOT_GENERATE_DICTIONARY dictionary) ...@@ -78,7 +78,9 @@ function(ROOT_GENERATE_DICTIONARY dictionary)
get_directory_property(incdirs INCLUDE_DIRECTORIES) get_directory_property(incdirs INCLUDE_DIRECTORIES)
set(includedirs) set(includedirs)
foreach( d ${incdirs}) foreach( d ${incdirs})
if(NOT ${d} STREQUAL "/usr/include")
set(includedirs ${includedirs} -I${d}) set(includedirs ${includedirs} -I${d})
endif()
endforeach() endforeach()
#---Get LinkDef.h file------------------------------------ #---Get LinkDef.h file------------------------------------
set(linkdefs) set(linkdefs)
......
...@@ -8,8 +8,8 @@ endif() ...@@ -8,8 +8,8 @@ endif()
include_directories(${EIGEN3_INCLUDE_DIR}) include_directories(${EIGEN3_INCLUDE_DIR})
# --- FFTW3 --- # --- FFTW3 ---
find_package(FFTW) find_package(FFTW REQUIRED)
include_directories(${FFTW_INCLUDE_DIR} REQUIRED) include_directories(${FFTW_INCLUDE_DIR})
# --- Boost --- # --- Boost ---
set(Boost_USE_STATIC_LIBS OFF) set(Boost_USE_STATIC_LIBS OFF)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment