-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
52 lines (39 loc) · 1.5 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 3.1)
#enable_language(Fortran)
set(CMAKE_CXX_STANDARD 11)
list (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
# -----------------------------------------
if (NOT DEFINED USE_EVERYTRACE)
set(USE_EVERYTRACE NO)
endif()
if (USE_EVERYTRACE)
find_package(Everytrace REQUIRED)
add_definitions(-DUSE_EVERYTRACE)
include_directories(${EVERYTRACE_INCLUDE_DIR})
list(APPEND EXTERNAL_LIBS ${EVERYTRACE_LIBRARY})
endif()
# -----------------------------------------
# -----------------------------------------------------
#https://cmake.org/pipermail/cmake/2007-February/012796.html
FIND_PACKAGE(Doxygen)
# ----------------------------------------------------------
# --------------------- Define our toolchain
#find_package(gtest REQUIRED)
find_package(ibmisc REQUIRED)
#find_package(Blitz REQUIRED)
#find_package(netcdf4_c REQUIRED)
find_package(netcdf4_cxx REQUIRED)
include_directories(${BLITZ_INCLUDE_DIR})
#include_directories(${NETCDF4_C_INCLUDE_DIR})
include_directories(${NETCDF4_CXX_INCLUDE_DIR})
include_directories(${IBMISC_INCLUDE_DIR})
list(APPEND EXTERNAL_LIBS ${NETCDF4_CXX_LIBRARY} ${IBMISC_LIBRARY})
#list(APPEND EXTERNAL_LIBS ${NETCDF4_C_LIBRARY} ${NETCDF4_CXX_LIBRARY} ${IBMISC_LIBRARY})
#list(APPEND EXTERNAL_LIBS ${IBMISC_LIBRARY})
include (setup_rpath)
include_directories($ENV{EB_INCLUDE_PATH})
#list(APPEND CMAKE_INSTALL_RPATH ${NETCDF4_C_ROOT})
# -------- Process subdirectories of the build
add_subdirectory(slib)
#add_subdirectory(bin)
add_subdirectory(tests)