Added proper support for boost detection
This commit is contained in:
parent
b6d1cf7591
commit
34de699863
3 changed files with 17 additions and 10 deletions
|
@ -1,5 +1,7 @@
|
|||
SET(tolink ${GSL_LIBRARIES} CosmoTool ${CosmoTool_LIBS})
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src ${FFTW3_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS} ${NETCDF_INCLUDE_PATH} ${GSL_INCLUDE_PATH})
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src)
|
||||
include_directories(${FFTW3_INCLUDE_DIRS}
|
||||
${EIGEN3_INCLUDE_DIRS} ${NETCDF_INCLUDE_PATH} ${GSL_INCLUDE_PATH})
|
||||
|
||||
IF(SHARP_INCLUDE_PATH)
|
||||
include_directories(BEFORE ${SHARP_INCLUDE_PATH})
|
||||
|
@ -11,9 +13,6 @@ target_link_libraries(testBQueue ${tolink})
|
|||
add_executable(testInterpolate testInterpolate.cpp)
|
||||
target_link_libraries(testInterpolate ${tolink})
|
||||
|
||||
add_executable(testSmooth testSmooth.cpp)
|
||||
target_link_libraries(testSmooth ${tolink})
|
||||
|
||||
add_executable(testkd testkd.cpp)
|
||||
target_link_libraries(testkd ${tolink})
|
||||
|
||||
|
@ -69,6 +68,12 @@ endif (ENABLE_SHARP AND SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)
|
|||
add_executable(test_cosmopower test_cosmopower.cpp)
|
||||
target_link_libraries(test_cosmopower ${tolink})
|
||||
|
||||
if (Boost_FOUND)
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
|
||||
add_executable(simple3DFilter simple3DFilter.cpp)
|
||||
target_link_libraries(simple3DFilter ${tolink})
|
||||
add_executable(testSmooth testSmooth.cpp)
|
||||
target_link_libraries(testSmooth ${tolink})
|
||||
|
||||
add_executable(simple3DFilter simple3DFilter.cpp)
|
||||
target_link_libraries(simple3DFilter ${tolink})
|
||||
endif (Boost_FOUND)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#include <cassert>
|
||||
#include <CosmoTool/yorick.hpp>
|
||||
#include <CosmoTool/sphSmooth.hpp>
|
||||
#include <CosmoTool/mykdtree.hpp>
|
||||
#include <CosmoTool/miniargs.hpp>
|
||||
#include "yorick.hpp"
|
||||
#include "sphSmooth.hpp"
|
||||
#include "mykdtree.hpp"
|
||||
#include "miniargs.hpp"
|
||||
|
||||
using namespace std;
|
||||
using namespace CosmoTool;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue