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

https://github.com/chunleili/nonNewtonCode
22 December 2023, 13:46:53 UTC
  • Code
  • Branches (2)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/cmake-fix
    • refs/heads/main
    No releases to show
  • a715a39
  • /
  • Tools
  • /
  • PartioViewer
  • /
  • CMakeLists.txt
Raw File Download
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

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
  • directory
  • revision
  • snapshot
origin badgecontent badge Iframe embedding
swh:1:cnt:182a2028179544c00e17b2b243724d8b9b5f7eeb
origin badgedirectory badge Iframe embedding
swh:1:dir:f962141be68f43cdcf20bcc4b71f232fb0520a5a
origin badgerevision badge
swh:1:rev:645503d647115a39bb73e84b424a72611e535fa2
origin badgesnapshot badge
swh:1:snp:8d20debb81c7f94e8fdd49c807a95451a3476519

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
  • directory
  • revision
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: 645503d647115a39bb73e84b424a72611e535fa2 authored by chunleili on 08 December 2023, 02:41:15 UTC
Add files via upload
Tip revision: 645503d
CMakeLists.txt
include(${PROJECT_SOURCE_DIR}/GUI/OpenGL/CMakeLists.txt)

if (USE_IMGUI)
	include(${PROJECT_SOURCE_DIR}/GUI/imgui/CMakeLists.txt)
	set(VIEWER_LINK_LIBRARIES imgui SPlisHSPlasH)
	# set(VIEWER_DEPENDENCIES imgui SPlisHSPlasH CopySPlisHSPlasHShaders CopyImguiFonts)
	set(VIEWER_DEPENDENCIES imgui SPlisHSPlasH copy_all_SPlisHSPlasH)

	set(GUI_SOURCE_FILES 
		GUI/imgui/PartioViewer_GUI_imgui.cpp
	)
	set(GUI_HEADER_FILES
		GUI/imgui/PartioViewer_GUI_imgui.h
	)

	source_group("Header Files\\GUI\\imgui" FILES ${GUI_HEADER_FILES})
	source_group("Source Files\\GUI\\imgui" FILES ${GUI_SOURCE_FILES})
else()
	include(${PROJECT_SOURCE_DIR}/GUI/TweakBar/CMakeLists.txt)
	set(VIEWER_LINK_LIBRARIES AntTweakBar glfw SPlisHSPlasH)
	set(VIEWER_DEPENDENCIES AntTweakBar glfw SPlisHSPlasH CopySPlisHSPlasHShaders)

	set(GUI_SOURCE_FILES 
		GUI/TweakBar/PartioViewer_GUI_TweakBar.cpp
	)
	set(GUI_HEADER_FILES
		GUI/TweakBar/PartioViewer_GUI_TweakBar.h
	)

	source_group("Header Files\\GUI\\TweakBar" FILES ${GUI_HEADER_FILES})
	source_group("Source Files\\GUI\\TweakBar" FILES ${GUI_SOURCE_FILES})
endif()

if(WIN32)
  set(VIEWER_LINK_LIBRARIES opengl32.lib glu32.lib ${VIEWER_LINK_LIBRARIES})
  set(VIEWER_DEPENDENCIES ${VIEWER_DEPENDENCIES})
else()
  set(OpenGL_GL_PREFERENCE GLVND)
  find_package(OpenGL REQUIRED)

  include_directories( ${OPENGL_INCLUDE_DIRS})

  set(VIEWER_LINK_LIBRARIES
    ${VIEWER_LINK_LIBRARIES}
    ${OPENGL_LIBRARIES}
  )
endif()



add_executable(PartioViewer
	main.cpp
	
	PartioViewer.cpp
	PartioViewer.h
	
	GUI/OpenGL/PartioViewer_OpenGL.cpp
	GUI/OpenGL/PartioViewer_OpenGL.h
	
	GUI/PartioViewer_GUI_Base.h
	${GUI_SOURCE_FILES}
	${GUI_HEADER_FILES}
	
	${PROJECT_SOURCE_DIR}/extern/toojpeg/toojpeg.cpp
	${PROJECT_SOURCE_DIR}/extern/toojpeg/toojpeg.h
	
	${VIS_FILES}
	${GUI_FILES}
)

if (NOT USE_IMGUI)
	target_compile_definitions(PartioViewer PRIVATE -DTW_NO_LIB_PRAGMA -DTW_STATIC)
else()
	target_compile_definitions(PartioViewer PUBLIC -DUSE_IMGUI)
endif()


add_dependencies(PartioViewer ${VIEWER_DEPENDENCIES})
target_link_libraries(PartioViewer ${VIEWER_LINK_LIBRARIES})
VIS_SOURCE_GROUPS()
GUI_SOURCE_GROUPS()

set_target_properties(PartioViewer PROPERTIES FOLDER "Tools")
set_target_properties(PartioViewer PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
set_target_properties(PartioViewer PROPERTIES RELWITHDEBINFO_POSTFIX ${CMAKE_RELWITHDEBINFO_POSTFIX})
set_target_properties(PartioViewer PROPERTIES MINSIZEREL_POSTFIX ${CMAKE_MINSIZEREL_POSTFIX})

source_group("Header Files\\GUI" FILES 	GUI/PartioViewer_GUI_Base.h)
source_group("Header Files\\GUI\\OpenGL" FILES 	GUI/OpenGL/PartioViewer_OpenGL.h)
source_group("Source Files\\GUI\\OpenGL" FILES 	GUI/OpenGL/PartioViewer_OpenGL.cpp)

back to top

Software Heritage — Copyright (C) 2015–2025, 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