Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
content badge
swh:1:cnt:b9ed29a2cbc59d9e9882b968bf69245ca84eecab

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
(requires biblatex-software package)
Generating citation ...
set(CMAKE_FIND_DEBUG_MODE TRUE)

set(LPSOLVE_DIR $ENV{LPSOLVE_DIR} CACHE PATH "lpsolve directory (contain include/lp_lib.h).")

find_path(LPSOLVE_INCLUDE_DIR
          NAMES lp_lib.h
          PATHS ${LPSOLVE_DIR}
                ${LPSOLVE_DIR}/include
                /usr/local/include
                /usr/include
                ${VS_SEARCH_PATH}/lpsolve-5.5.2.11/include
                ~/sw/lpsolve-5.5.2.11/include
          )
          
find_library(LPSOLVE_LIBRARY
             NAMES lpsolve55
             HINTS ${LPSOLVE_DIR}
                   ${LPSOLVE_DIR}/lib
                   ${VS_SEARCH_PATH}/lpsolve-5.5.2.11/lib
                   ~/sw/lpsolve-5.5.2.11/lib
             PATHS /usr/local/lib
                   /usr/lib
            )

get_filename_component(LPSOLVE_LIBRARY_DIR ${LPSOLVE_LIBRARY} DIRECTORY CACHE)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LPSOLVE DEFAULT_MSG LPSOLVE_INCLUDE_DIR LPSOLVE_LIBRARY LPSOLVE_LIBRARY_DIR)

if(LPSOLVE_FOUND AND NOT TARGET lpsolve::lpsolve)
    add_library(lpsolve::lpsolve INTERFACE IMPORTED)
    target_include_directories(lpsolve::lpsolve INTERFACE ${LPSOLVE_INCLUDE_DIR})
    target_link_directories(lpsolve::lpsolve INTERFACE ${LPSOLVE_LIBRARY_DIR})
    target_link_libraries(lpsolve::lpsolve INTERFACE ${LPSOLVE_LIBRARY})
endif()

mark_as_advanced(LPSOLVE_INCLUDE_DIR)
mark_as_advanced(LPSOLVE_LIBRARY)

set(CMAKE_FIND_DEBUG_MODE FALSE)

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API