GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
# libnormaliz source files1SET(sources cone_property.cpp HilbertSeries.cpp libnormaliz-templated.cpp offload_handler.cpp bottom.cpp nmz_integrate.cpp)2# libnormaliz header files3SET(headers cone.h cone_property.h convert.h general.h HilbertSeries.h integer.h libnormaliz.h map_operations.h matrix.h my_omp.h normaliz_exception.h sublattice_representation.h vector_operations.h version.h)45# add the necessary include directories6INCLUDE_DIRECTORIES(..)7FIND_PACKAGE(Boost REQUIRED)8#IF (Boost_FOUND)9# MESSAGE(STATUS "Boost found with include dir: ${Boost_INCLUDE_DIR}")10#ENDIF()11INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})1213SET (NMZ_BUILD_BOTH "NO" CACHE BOOL "build shared AND static libnormaliz")1415IF (NMZ_BUILD_BOTH OR NOT NMZ_BUILD_STATIC)16# create the shared library17ADD_LIBRARY(normaliz-shared SHARED ${sources})18SET_TARGET_PROPERTIES(normaliz-shared PROPERTIES OUTPUT_NAME normaliz VERSION ${VERSION} SOVERSION 0)19# set the dependency on gmp20TARGET_LINK_LIBRARIES (normaliz-shared ${GMPXX_LIBRARIES} ${GMP_LIBRARIES})21#set dependency on optional lib scip22IF (NMZ_SCIP AND SCIP_FOUND)23MESSAGE(STATUS "Adding scip libraries to link ${SCIP_LIBRARY}")24TARGET_LINK_LIBRARIES (normaliz-shared ${SCIP_LIBRARY})25ENDIF (NMZ_SCIP AND SCIP_FOUND)26# set dependency on optional lib cocoa27IF (NMZ_COCOA AND COCOA_FOUND)28MESSAGE(STATUS "Adding CoCoA libraries to link ${COCOA_LIBRARY}")29TARGET_LINK_LIBRARIES (normaliz-shared ${COCOA_LIBRARY})30ENDIF (NMZ_COCOA AND COCOA_FOUND)31INSTALL(TARGETS normaliz-shared32ARCHIVE DESTINATION lib33LIBRARY DESTINATION lib${LIB_SUFFIX}34RUNTIME DESTINATION bin35COMPONENT sharedlibs36)37ENDIF ()3839IF (NMZ_BUILD_BOTH OR NMZ_BUILD_STATIC)40#create the static library41ADD_LIBRARY(normaliz-static STATIC ${sources})42SET_TARGET_PROPERTIES(normaliz-static PROPERTIES OUTPUT_NAME normaliz VERSION ${VERSION} SOVERSION 0)43INSTALL(TARGETS normaliz-static ARCHIVE DESTINATION lib${LIB_SUFFIX})44ENDIF ()4546INSTALL(FILES ${headers} DESTINATION include/${PROJECT_NAME} COMPONENT headers)4748SET(LIBNORMALIZ_INCLUDE_DIR ${includedir})49SET(LIBNORMALIZ_INCLUDE_DIRS ${LIBNORMALIZ_INCLUDE_DIR})50SET(LIBNORMALIZ_ROOT_DIR ${prefix})51SET(LIBNORMALIZ_VERSION_STRING ${VERSION_STRING})52SET(LIBNORMALIZ_VERSION_MAJOR ${VERSION_MAJOR})53SET(LIBNORMALIZ_VERSION_MINOR ${VERSION_MINOR})54SET(LIBNORMALIZ_VERSION_PATCH ${VERSION_PATCH})55CONFIGURE_FILE(version.h.in ${CMAKE_CURRENT_SOURCE_DIR}/version.h @ONLY)56SET(LIBNORMALIZ_USE_FILE ${CMAKE_INSTALL_PREFIX}/${LIBNORMALIZ_CMAKE_CONFIG_DIR}/UseLibnormaliz.cmake)57CONFIGURE_FILE(../LibnormalizConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/LibnormalizConfig.cmake @ONLY)58#INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/LibnormalizConfig.cmake ../UseLibnormaliz.cmake DESTINATION ${LIBNORMALIZ_CMAKE_CONFIG_DIR})5960#ADD_SUBDIRECTORY(examples)616263