forked from SheffieldML/GPc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
76 lines (59 loc) · 1.9 KB
/
CMakeLists.txt
File metadata and controls
76 lines (59 loc) · 1.9 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
cmake_minimum_required(VERSION 2.8.3)
project(gpc)
add_compile_options(-std=c++11)
#set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH}/home/juraj/.local/lib/easy_profiler-v2.0.0-linux_x64-libc_2.23/lib/cmake/easy_profiler")
find_package(catkin REQUIRED COMPONENTS)
#find_package(easy_profiler REQUIRED)
set(CMAKE_CXX_FLAGS "-fPIC")
set(CMAKE_C_FLAGS "-fPIC")
message("--------")
message(${CMAKE_PREFIX_PATH})
catkin_package(
INCLUDE_DIRS include/GPc
LIBRARIES GPc
DEPENDS)
include_directories(
include/GPc
/opt/MATLAB/R2018a/extern/include
)
link_directories(
/opt/MATLAB/R2018a/bin/glnxa64
lib/
)
add_definitions(-D_FORTRAN_MAIN_FIX)
add_definitions(-D_NDLMATLAB)
add_library(GPc SHARED ${CMatrix_sources}
src/GPc/CClctrl.cpp
src/GPc/CGp.cpp
src/GPc/CMatrix.cpp
src/GPc/noise/CNoise.cpp
src/GPc/noise/CGaussianNoise.cpp
src/GPc/noise/CGaussianMultiDimNoise.cpp
src/GPc/ndlutil.cpp
src/GPc/ndlstrutil.cpp
src/GPc/CTransform.cpp
src/GPc/COptimisable.cpp
src/GPc/CKern.cpp
src/GPc/CDist.cpp
src/GPc/ndlassert.cpp
src/GPc/CRbfardKern.cpp
src/GPc/CRbfKern.cpp
lib/ndlfortran.o
)
target_link_libraries(GPc mat mx gfortran lapack blas)
add_executable(testGP test/testGp.cpp)
target_link_libraries(testGP GPc)
add_executable(gp src/gp.cpp)
target_link_libraries(gp GPc)
add_executable(testDist test/testDist.cpp)
target_link_libraries(testDist GPc)
add_executable(testCode test/testCode.cpp)
target_link_libraries(testCode GPc)
add_executable(testKern test/testKern.cpp)
target_link_libraries(testKern GPc)
add_executable(testMatrix test/testMatrix.cpp)
target_link_libraries(testMatrix GPc)
add_executable(testNoise test/testNoise.cpp)
target_link_libraries(testNoise GPc)
add_executable(testGPML test/testGPML.cpp)
target_link_libraries(testGPML GPc)