mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-04-07 10:05:55 +01:00
adding CLI binaries
This commit is contained in:
parent
cc0154f58c
commit
341b4bc73b
@ -13,6 +13,11 @@ include(GNUInstallDirs)
|
||||
|
||||
# C++ standard
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
# installation rpath setup
|
||||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
||||
|
||||
# fetch and create symbolic link to Eigen headers
|
||||
set(FETCHCONTENT_BASE_DIR ${CMAKE_BINARY_DIR}/deps)
|
||||
@ -53,6 +58,9 @@ endif()
|
||||
|
||||
# subdirectories
|
||||
add_subdirectory(lib)
|
||||
add_subdirectory(examples)
|
||||
add_subdirectory(physics)
|
||||
add_subdirectory(utils)
|
||||
|
||||
# summary
|
||||
message(STATUS "---------------------------")
|
||||
|
21
examples/CMakeLists.txt
Normal file
21
examples/CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
||||
set(EXAMPLES_STEM
|
||||
exCompiledDoubleFunction
|
||||
exDerivative
|
||||
exDWT
|
||||
exFit
|
||||
exFitSample
|
||||
exIntegrator
|
||||
exInterp
|
||||
exMat
|
||||
exMathInterpreter
|
||||
exMin
|
||||
exPlot
|
||||
exPValue
|
||||
exRand
|
||||
exRootFinder
|
||||
exThreadPool)
|
||||
|
||||
foreach(_stem ${EXAMPLES_STEM})
|
||||
add_executable(${_stem} ${_stem}.cpp)
|
||||
target_link_libraries(${_stem} LatAnalyze)
|
||||
endforeach()
|
7
physics/CMakeLists.txt
Normal file
7
physics/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
set(PHYSICS_STEM 2pt-fit)
|
||||
|
||||
foreach(_stem ${PHYSICS_STEM})
|
||||
add_executable(latan-${_stem} ${_stem}.cpp)
|
||||
target_link_libraries(latan-${_stem} LatAnalyze)
|
||||
install(TARGETS latan-${_stem} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
endforeach()
|
18
utils/CMakeLists.txt
Normal file
18
utils/CMakeLists.txt
Normal file
@ -0,0 +1,18 @@
|
||||
set(UTILS_STEM
|
||||
plot
|
||||
resample
|
||||
sample-combine
|
||||
sample-dwt
|
||||
sample-element
|
||||
sample-fake
|
||||
sample-ft
|
||||
sample-merge
|
||||
sample-plot-corr
|
||||
sample-plot
|
||||
sample-read)
|
||||
|
||||
foreach(_stem ${UTILS_STEM})
|
||||
add_executable(latan-${_stem} ${_stem}.cpp)
|
||||
target_link_libraries(latan-${_stem} LatAnalyze)
|
||||
install(TARGETS latan-${_stem} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
endforeach()
|
Loading…
x
Reference in New Issue
Block a user