Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Umberto committed Nov 4, 2024
1 parent 608305e commit 9b2cb1f
Show file tree
Hide file tree
Showing 10 changed files with 2,217 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
core/build
binaries
5 changes: 0 additions & 5 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ Istituto Nazionale di Ricerca Metrologica (INRiM)
Strada delle cacce 91, 10135 Torino
ITALY

Nicola De Zanche,
University of Alberta
116 St & 85 Ave, Edmonton, AB T6G 2R3
CANADA

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
Expand Down
48 changes: 48 additions & 0 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
cmake_minimum_required(VERSION 3.16)

# set the project name and version
project(SpatialAveragingSAR VERSION 1.0 LANGUAGES C )

##### USER DEFINABLE OPTIONS & VARIABLES #####
option(CMROOTS_ENABLE "Enable precise roots calculation" ON)
option(WARNINGS_ENABLE "Activate/deactivate warnings" OFF)
option(DEBUG_ENABLE "Activate/deactivate debug" OFF)
option(REPORT_ENABLE "Generate the IEC/IEEE report in ${REPORT_PATH} with voxel volumes defined in ${VOX_VOL}" OFF)

set(REPORT_PATH ${PROJECT_SOURCE_DIR}/iecReport_unsorted.txt)
set(VOX_VOL 1) # Voxel volumes in mm^3 used for filling the data in the IEC/IEEE report

#TODO Remove after readme
set(CMAKE_BUILD_TYPE "Release")

if(CMROOTS_ENABLE)
set(CM_ROOTS ON)
# Find packages
find_package(LAPACK REQUIRED)
endif()

if (WARNINGS_ENABLE)
set(WARNINGS ON)
endif()

if (DEBUG_ENABLE)
set(DEBUG ${REPORT_PATH})
endif()

if (REPORT_ENABLE)
set(REPORT ${REPORT_PATH})
endif()

configure_file(${PROJECT_SOURCE_DIR}/include/globals.h.in ${PROJECT_SOURCE_DIR}/include/globals.h @ONLY)


add_library(auxFuncs SHARED auxFuncs.c)
add_library(AvgSARStep1 SHARED avgSARStep1.c)
add_library(AvgSARStep2 SHARED avgSARStep2.c)

if(CMROOTS_ENABLE)
target_link_libraries(auxFuncs PRIVATE LAPACK::LAPACK)
endif()

target_link_libraries(AvgSARStep1 PUBLIC auxFuncs)
target_link_libraries(AvgSARStep2 PUBLIC auxFuncs)
Loading

0 comments on commit 9b2cb1f

Please sign in to comment.