Skip to content

Commit

Permalink
Add suitesparese to cmakelists
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Dec 10, 2023
1 parent 0627bd5 commit 946acb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.18)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
project(mrcal_jni LANGUAGES CXX VERSION 1.0.0)
project(mrcal_jni LANGUAGES C CXX VERSION 1.0.0)

option(BUILD_SHARED_LIBS "Build shared libraries" ON)

Expand Down Expand Up @@ -102,6 +102,7 @@ IF (WIN32)
target_link_libraries(mrcal_jni ${OPENCV_LIB_PATH} SuiteSparse::amd SuiteSparse::cholmod)
ELSE()
target_link_libraries(mrcal_jni ${OPENCV_LIB_PATH} suitesparseconfig cholmod)
target_include_directories(mrcal_jni PUBLIC "/usr/include/suitesparse")
ENDIF()


Expand Down

0 comments on commit 946acb7

Please sign in to comment.