diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2018-08-04 23:07:29 +0100 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2018-08-04 23:07:29 +0100 |
commit | a73d878e3f444316a2bb92b851f790d93992c46d (patch) | |
tree | be17d9d54842d5f3cc46bde0b3cb779acacc4906 /Wrappers/Matlab | |
parent | bd874abcebae787ea1f1fddc138fb67a8abf9c9b (diff) | |
download | regularization-a73d878e3f444316a2bb92b851f790d93992c46d.tar.gz regularization-a73d878e3f444316a2bb92b851f790d93992c46d.tar.bz2 regularization-a73d878e3f444316a2bb92b851f790d93992c46d.tar.xz regularization-a73d878e3f444316a2bb92b851f790d93992c46d.zip |
beginning of CMake compiled Matlab binding
Diffstat (limited to 'Wrappers/Matlab')
-rwxr-xr-x | Wrappers/Matlab/CMakeLists.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Wrappers/Matlab/CMakeLists.txt b/Wrappers/Matlab/CMakeLists.txt new file mode 100755 index 0000000..349baf6 --- /dev/null +++ b/Wrappers/Matlab/CMakeLists.txt @@ -0,0 +1,29 @@ +project(regulariserMatlab)
+
+message('<<<<<<<<<<<Compiling CPU regularisers>>>>>>>>>>>>>')
+
+message('Compiling ROF-TV...')
+#mex ROF_TV.c ROF_TV_core.c utils.c COMPFLAGS="\$COMPFLAGS -fopenmp -Wall -std=c99"
+#movefile('ROF_TV.mex*',Pathmove);
+
+
+find_package(Matlab COMPONENTS MAIN_PROGRAM MX_LIBRARY ENG_LIBRARY )
+message ("Matlab mex library " ${Matlab_LIBRARIES})
+
+
+
+#C:\Users\ofn77899\Documents\Projects\CCPi\GitHub\CCPi-FISTA_Reconstruction\Core\regularisers_CPU
+matlab_add_mex(
+ NAME MatlabWrapper
+ SRC
+ #${CMAKE_SOURCE_DIR}/Wrappers/Matlab/mex_compile/regularisers_CPU/ROF_TV.c
+ ${CMAKE_SOURCE_DIR}/Wrappers/Matlab/mex_compile/regularisers_CPU/TNV.c
+ LINK_TO cilreg ${Matlab_LIBRARIES}
+ )
+
+target_include_directories(MatlabWrapper
+ PUBLIC ${CMAKE_SOURCE_DIR}/Core/regularisers_CPU
+ ${CMAKE_SOURCE_DIR}/Core/regularisers_GPU
+ ${CMAKE_SOURCE_DIR}/Core/inpainters_CPU
+ ${CMAKE_SOURCE_DIR}/Core/
+ ${MATLAB_INCLUDE_DIR})
\ No newline at end of file |