cmake_minimum_required(VERSION 3.7) project(fracture) include_directories(src ~/.local/include) link_directories(~/.local/lib) file(GLOB SOURCES lib/*.c) add_executable(fracture src/fracture.c ${SOURCES}) add_executable(big_anal_process src/big_anal_process.c ${SOURCES}) add_executable(anal_process src/anal_process.c ${SOURCES}) add_executable(cen_anal_process src/cen_anal_process.c ${SOURCES}) add_executable(long_anal_process src/long_anal_process.c ${SOURCES}) add_executable(corr_test src/corr_test.c ${SOURCES}) target_link_libraries(fracture gsl c cblas lapack dl pthread cholmod amd colamd suitesparseconfig camd ccolamd rt metis m jst tcmalloc profiler) target_link_libraries(big_anal_process gsl c cblas lapack dl pthread cholmod amd colamd suitesparseconfig camd ccolamd rt metis m jst tcmalloc profiler) target_link_libraries(cen_anal_process gsl c cblas lapack dl pthread cholmod amd colamd suitesparseconfig camd ccolamd rt metis m jst tcmalloc profiler) target_link_libraries(long_anal_process gsl c cblas lapack dl pthread cholmod amd colamd suitesparseconfig camd ccolamd rt metis m jst tcmalloc profiler) target_link_libraries(corr_test gsl c cblas lapack dl pthread cholmod amd colamd suitesparseconfig camd ccolamd rt metis m jst tcmalloc profiler) target_link_libraries(anal_process gsl c cblas lapack dl pthread cholmod amd colamd suitesparseconfig camd ccolamd rt metis m jst tcmalloc profiler)