File tree Expand file tree Collapse file tree
examples/metabolic_simplification Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ GetLPSolve()
3838include ("../../external/cmake-files/SuiteSparse.cmake" )
3939GetSuiteSparse ()
4040
41+ include ("../../external/cmake-files/JSON.cmake" )
42+ GetJSON ()
43+
4144set (CMAKE_EXPORT_COMPILE_COMMANDS "ON" )
4245
4346include_directories (BEFORE ../../external )
@@ -62,4 +65,4 @@ add_definitions(${CXX_COVERAGE_COMPILE_FLAGS} "-DBOOST_NO_AUTO_PTR")
6265find_package (LAPACK REQUIRED )
6366find_package (BLAS REQUIRED )
6467add_executable (metabolic_simplification metabolic_simplification.cpp )
65- TARGET_LINK_LIBRARIES (metabolic_simplification highs::highs lp_solve ${SUITESPARSE_LIBRARIES} ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} ${MKL_LINK} )
68+ TARGET_LINK_LIBRARIES (metabolic_simplification highs::highs lp_solve nlohmann_json::nlohmann_json ${SUITESPARSE_LIBRARIES} ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} ${MKL_LINK} )
Original file line number Diff line number Diff line change @@ -134,6 +134,9 @@ GetSuiteSparse()
134134include ("../external/cmake-files/HiGHS.cmake" )
135135GetHighs ()
136136
137+ include ("../external/cmake-files/JSON.cmake" )
138+ GetJSON ()
139+
137140# Code Coverage Configuration
138141add_library (coverage_config INTERFACE )
139142
@@ -489,7 +492,7 @@ find_package(LAPACK REQUIRED)
489492find_package (BLAS REQUIRED )
490493TARGET_LINK_LIBRARIES (full_dimensional_polytope_test lp_solve ${SUITESPARSE_LIBRARIES} ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} ${MKL_LINK} coverage_config )
491494TARGET_LINK_LIBRARIES (test_highs highs::highs coverage_config )
492- TARGET_LINK_LIBRARIES (test_metabolic_polytope highs::highs coverage_config )
495+ TARGET_LINK_LIBRARIES (test_metabolic_polytope highs::highs nlohmann_json::nlohmann_json coverage_config )
493496TARGET_LINK_LIBRARIES (test_simplification highs::highs coverage_config )
494497TARGET_LINK_LIBRARIES (test_transformation highs::highs lp_solve ${SUITESPARSE_LIBRARIES} ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} ${MKL_LINK} coverage_config )
495- TARGET_LINK_LIBRARIES (benchmark_simplification highs::highs coverage_config )
498+ TARGET_LINK_LIBRARIES (benchmark_simplification highs::highs nlohmann_json::nlohmann_json coverage_config )
You can’t perform that action at this time.
0 commit comments