You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1003 B

9 months ago
cmake_minimum_required(VERSION 3.25)
project(algoim CXX C)
set(CMAKE_STANDARD 17)
9 months ago
set(CMAKE_EXPORT_COMPILECOMMANDS ON)
8 months ago
include_directories(algoim gjj)
9 months ago
# find_package(LAPACK REQUIRED)
find_path(LAPACKE_INCLUDE_DIR NAMES lapacke.h PATH_SUFFIXES include)
find_library(LAPACKE_LIB NAMES lapacke PATH_SUFFIXES lib)
if(NOT LAPACKE_INCLUDE_DIR OR NOT LAPACKE_LIB)
message(FATAL_ERROR "LAPACKE not found")
endif()
# file(GLOB HPP_SOURCES "${SOURCE_DIR}/*.cpp")
aux_source_directory(algoim algoim_SOURCES)
# add_executable(algoim examples/examples_quad_multipoly.cpp ${algoim_SOURCES})
# target_include_directories(algoim PRIVATE ${LAPACKE_INCLUDE_DIR})
# target_link_libraries(algoim PRIVATE ${LAPACKE_LIB} ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
5 months ago
add_executable(loader examples/example_loader.cpp ${algoim_SOURCES})
target_include_directories(loader PRIVATE ${LAPACKE_INCLUDE_DIR})
target_link_libraries(loader PRIVATE ${LAPACKE_LIB} ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})