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/sueda/eol-cloth
16 March 2020, 03:50:51 UTC
  • Code
  • Branches (2)
  • Releases (0)
  • Visits
Revision db932cf2ab4fe7eae0baeaad78ce1ce30d866bee authored by Weidner on 12 July 2018, 17:27:20 UTC, committed by Weidner on 12 July 2018, 17:27:20 UTC
New solver classes
1 parent 0f827ca
  • Files
  • Changes
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    • refs/heads/v0.2
    • db932cf2ab4fe7eae0baeaad78ce1ce30d866bee
    No releases to show
  • e31fa09
  • /
  • CMakeLists.txt
Raw File Download Save again
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.

  • revision
  • directory
  • content
  • snapshot
origin badgerevision badge
swh:1:rev:db932cf2ab4fe7eae0baeaad78ce1ce30d866bee
origin badgedirectory badge
swh:1:dir:e31fa09ce347eeab2e076f5b1524e8a6b214a991
origin badgecontent badge
swh:1:cnt:a1b72ce6da63ccbf9f315b647a7a9636787a87a5
origin badgesnapshot badge
swh:1:snp:283fc0df3963669dc87db8b6fd8259953e6e6732

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.

  • revision
  • directory
  • content
  • 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: db932cf2ab4fe7eae0baeaad78ce1ce30d866bee authored by Weidner on 12 July 2018, 17:27:20 UTC
New solver classes
Tip revision: db932cf
CMakeLists.txt
# Author: Shinjiro Sueda
# Edited: Nick Weidner
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

# Name of the project
PROJECT(EOL-Cloth)

#-----------------------------------------------
# USER SETTINGS
#-----------------------------------------------

# COMPILER OPTIONS

OPTION(ONLINE "Build with online rendering supported" ON)

# Include support for one or multiple solvers
OPTION(MOSEK "Build with Mosek support" OFF)
OPTION(GUROBI "Build with Gurobi support" OFF)
OPTION(IGL "Build with libIGL support" OFF)


# LIBRARY PATHS
# These paths are machine specific
# These paths are examples

 SET(DEF_DIR_EIGEN "C:\\c++\\eigen-3.3.4")
 
 IF(${ONLINE})
	 SET(DEF_DIR_GLM "C:\\c++\\glm-0.9.8.5")
	 SET(DEF_DIR_GLFW "C:\\c++\\glfw-3.2.1")
	 SET(DEF_DIR_GLEW "C:\\c++\\glew-2.1.0")
	 ADD_DEFINITIONS(-DEOLC_ONLINE)
 ENDIF()
 
 IF(${MOSEK}) 
	 SET(DEF_DIR_MOSEK "C:\\Program Files\\Mosek\\8\\tools\\platform\\win64x86") #Location of /h and /bin
	 SET(DEF_BINARY_MOSEK "mosek64_8_1.lib") # Platform specific
	 ADD_DEFINITIONS(-DEOLC_MOSEK)
 ENDIF()
 
 IF(${GUROBI})
	 SET(DEF_DIR_GUROBI "C:\\gurobi752\\win64")
	 SET(DEF_BINARY_GUROBI "gurobi75.lib") # Platform specific
	 SET(DEF_BINARY_GUROBI_RELEASE "gurobi_c++md2017.lib") # Platform specific
	 SET(DEF_BINARY_GUROBI_DEBUG "gurobi_c++mdd2017.lib") # Platform specific
	 ADD_DEFINITIONS(-DEOLC_GUROBI)
 ENDIF()
 
 IF(${IGL})
	 SET(DEF_DIR_IGL "C:\\c++\\libigl-1.2.1\\include") # Does not build static lib
	 ADD_DEFINITIONS(-DEOLC_IGL)
 ENDIF()
 
# Additional defines
 ADD_DEFINITIONS(-D_USE_MATH_DEFINES)
 ADD_DEFINITIONS(-D_CRT_NO_VA_START_VALIDATION)

#-----------------------------------------------
# END USER SETTINGS, DON'T TOUCH BELOW
#-----------------------------------------------

# Use glob to get the list of all source files.
# We don't really need to include header and resource files to build, but it's
# nice to have them also show up in IDEs.
 FILE(GLOB SOURCES "src/*.cpp" "src/*.c")
 FILE(GLOB HEADERS "src/*.hpp" "src/*.h")
 FILE(GLOB_RECURSE GLSL "resources/*.glsl")
 FILE(GLOB ARCSIMC "src/external/ArcSim/*.cpp" "src/external/ArcSim/*.c")
 FILE(GLOB ARCSIMH "src/external/ArcSim/*.hpp" "src/external/ArcSim/*.h")
 FILE(GLOB JSONC "src/external/Json/*.cpp" "src/external/Json/*.c")
 FILE(GLOB JSONH "src/external/Json/*.hpp" "src/external/Json/*.h")
 IF(${ONLINE})
	FILE(GLOB ONLINEC "src/online/*.cpp" "src/online/*.c")
	FILE(GLOB ONLINEH "src/online/*.hpp" "src/online/*.h")
 ENDIF()
 IF(${MOSEK})
	FILE(GLOB MOSEKC "src/external/SolverWrappers/Mosek/*.cpp" "src/external/SolverWrappers/Mosek/*.c")
	FILE(GLOB MOSEKH "src/external/SolverWrappers/Mosek/*.hpp" "src/external/SolverWrappers/Mosek/*.h")
 ENDIF()
 IF(${GUROBI})
	FILE(GLOB GUROBIC "src/external/SolverWrappers/Gurobi/*.cpp" "src/external/SolverWrappers/Gurobi/*.c")
	FILE(GLOB GUROBIH "src/external/SolverWrappers/Gurobi/*.hpp" "src/external/SolverWrappers/Gurobi/*.h")
 ENDIF()
 # FILE(GLOB_RECURSE SOURCES 
	# RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
	# ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp
	# ${CMAKE_CURRENT_SOURCE_DIR}/src/*.h)
 # FILE(GLOB_RECURSE EXTERNAL 
	# RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
	# ${CMAKE_CURRENT_SOURCE_DIR}/external/ArcSim/*.cpp
	# ${CMAKE_CURRENT_SOURCE_DIR}/external/ArcSim/*.hpp)
	
# SOURCE_GROUP(Source FILES ${SOURCES})
# SOURCE_GROUP(External FILES ${EXTERNAL})

# Set the executable.
ADD_EXECUTABLE(${CMAKE_PROJECT_NAME} ${SOURCES} ${HEADERS} ${GLSL} ${ARCSIMC} ${ARCSIMH} ${JSONC} ${JSONH} ${ONLINEC} ${ONLINEH} ${MOSEKC} ${MOSEKH} ${GUROBIC} ${GUROBIH})

# Get the EIGEN environment variable. Since EIGEN is a header-only library, we
# just need to add it to the include directory.
SET(EIGEN3_INCLUDE_DIR "$ENV{EIGEN3_INCLUDE_DIR}")
IF(NOT EIGEN3_INCLUDE_DIR)
  # The environment variable was not set
  SET(ERR_MSG "Please point the environment variable EIGEN3_INCLUDE_DIR to the root directory of your EIGEN installation.")
  IF(WIN32)
    # On Windows, try the default location
    MESSAGE(STATUS "Looking for EIGEN in ${DEF_DIR_EIGEN}")
    IF(IS_DIRECTORY ${DEF_DIR_EIGEN})
      MESSAGE(STATUS "Found!")
      SET(EIGEN3_INCLUDE_DIR ${DEF_DIR_EIGEN})
    ELSE()
      MESSAGE(FATAL_ERROR ${ERR_MSG})
    ENDIF()
  ELSE()
    MESSAGE(FATAL_ERROR ${ERR_MSG})
  ENDIF()
ENDIF()
INCLUDE_DIRECTORIES(${EIGEN3_INCLUDE_DIR})

IF(${ONLINE})
	# Get the GLM environment variable. Since GLM is a header-only library, we
	# just need to add it to the include directory.
	SET(GLM_INCLUDE_DIR "$ENV{GLM_INCLUDE_DIR}")
	IF(NOT GLM_INCLUDE_DIR)
	  # The environment variable was not set
	  SET(ERR_MSG "Please point the environment variable GLM_INCLUDE_DIR to the root directory of your GLM installation.")
	  IF(WIN32)
		# On Windows, try the default location
		MESSAGE(STATUS "Looking for GLM in ${DEF_DIR_GLM}")
		IF(IS_DIRECTORY ${DEF_DIR_GLM})
		  MESSAGE(STATUS "Found!")
		  SET(GLM_INCLUDE_DIR ${DEF_DIR_GLM})
		ELSE()
		  MESSAGE(FATAL_ERROR ${ERR_MSG})
		ENDIF()
	  ELSE()
		MESSAGE(FATAL_ERROR ${ERR_MSG})
	  ENDIF()
	ENDIF()
	INCLUDE_DIRECTORIES(${GLM_INCLUDE_DIR})

	# Get the GLFW environment variable. There should be a CMakeLists.txt in the 
	# specified directory.
	SET(GLFW_DIR "$ENV{GLFW_DIR}")
	IF(NOT GLFW_DIR)
	  # The environment variable was not set
	  SET(ERR_MSG "Please point the environment variable GLFW_DIR to the root directory of your GLFW installation.")
	  IF(WIN32)
		# On Windows, try the default location
		MESSAGE(STATUS "Looking for GLFW in ${DEF_DIR_GLFW}")
		IF(IS_DIRECTORY ${DEF_DIR_GLFW})
		  MESSAGE(STATUS "Found!")
		  SET(GLFW_DIR ${DEF_DIR_GLFW})
		ELSE()
		  MESSAGE(FATAL_ERROR ${ERR_MSG})
		ENDIF()
	  ELSE()
		MESSAGE(FATAL_ERROR ${ERR_MSG})
	  ENDIF()
	ENDIF()
	OPTION(GLFW_BUILD_EXAMPLES "GLFW_BUILD_EXAMPLES" OFF)
	OPTION(GLFW_BUILD_TESTS "GLFW_BUILD_TESTS" OFF)
	OPTION(GLFW_BUILD_DOCS "GLFW_BUILD_DOCS" OFF)
	IF(CMAKE_BUILD_TYPE MATCHES Release)
	  ADD_SUBDIRECTORY(${GLFW_DIR} ${GLFW_DIR}/release)
	ELSE()
	  ADD_SUBDIRECTORY(${GLFW_DIR} ${GLFW_DIR}/debug)
	ENDIF()
	INCLUDE_DIRECTORIES(${GLFW_DIR}/include)
	TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME} glfw ${GLFW_LIBRARIES})

	# Get the GLEW environment variable.
	SET(GLEW_DIR "$ENV{GLEW_DIR}")
	IF(NOT GLEW_DIR)
	  # The environment variable was not set
	  SET(ERR_MSG "Please point the environment variable GLEW_DIR to the root directory of your GLEW installation.")
	  IF(WIN32)
		# On Windows, try the default location
		MESSAGE(STATUS "Looking for GLEW in ${DEF_DIR_GLEW}")
		IF(IS_DIRECTORY ${DEF_DIR_GLEW})
		  MESSAGE(STATUS "Found!")
		  SET(GLEW_DIR ${DEF_DIR_GLEW})
		ELSE()
		  MESSAGE(FATAL_ERROR ${ERR_MSG})
		ENDIF()
	  ELSE()
		MESSAGE(FATAL_ERROR ${ERR_MSG})
	  ENDIF()
	ENDIF()
	INCLUDE_DIRECTORIES(${GLEW_DIR}/include)
	IF(WIN32)
	  # With prebuilt binaries
	  TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME} ${GLEW_DIR}/lib/Release/x64/glew32s.lib)
	ELSE()
	  TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME} ${GLEW_DIR}/lib/libGLEW.a)
	ENDIF()
ENDIF()

# Get the MOSEK environment variable.
IF(${MOSEK})
	SET(MOSEK_DIR "$ENV{MOSEK_DIR}")
	IF(NOT MOSEK_DIR)
		# The environment variable was not set
		SET(ERR_MSG "Please point the environment variable MOSEK_DIR to the root directory of your MOSEK installation.")
		MESSAGE(STATUS "Looking for MOSEK in ${DEF_DIR_MOSEK}")
		IF(IS_DIRECTORY ${DEF_DIR_MOSEK})
			MESSAGE(STATUS "Found!")
			SET(MOSEK_DIR ${DEF_DIR_MOSEK})
		ELSE()
			MESSAGE(FATAL_ERROR ${ERR_MSG})
		ENDIF()
	ENDIF()
	INCLUDE_DIRECTORIES(${MOSEK_DIR}/h)
	# With prebuilt binaries
	TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME} ${MOSEK_DIR}/bin/${DEF_BINARY_MOSEK})
ENDIF()

# Get the MOSEK environment variable.
IF(${GUROBI})
	SET(GUROBI_DIR "$ENV{GUROBI_DIR}")
	IF(NOT GUROBI_DIR)
		# The environment variable was not set
		SET(ERR_MSG "Please point the environment variable GUROBI_DIR to the root directory of your GUROBI installation.")
		MESSAGE(STATUS "Looking for GUROBI in ${DEF_DIR_GUROBI}")
		IF(IS_DIRECTORY ${DEF_DIR_GUROBI})
			MESSAGE(STATUS "Found!")
			SET(GUROBI_DIR ${DEF_DIR_GUROBI})
		ELSE()
			MESSAGE(FATAL_ERROR ${ERR_MSG})
		ENDIF()
	ENDIF()
	INCLUDE_DIRECTORIES(${GUROBI_DIR}/include)
	# With prebuilt binaries
	TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME} ${GUROBI_DIR}/lib/${DEF_BINARY_GUROBI})
	TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME} debug ${GUROBI_DIR}/lib/${DEF_BINARY_GUROBI_DEBUG})
	TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME} optimized ${GUROBI_DIR}/lib/${DEF_BINARY_GUROBI_RELEASE})
ENDIF()

# Get the IGL environment variable.
IF(${IGL})
	SET(IGL_INCLUDE_DIR "$ENV{IGL_INCLUDE_DIR}")
	IF(NOT IGL_INCLUDE_DIR)
		# The environment variable was not set
		SET(ERR_MSG "Please point the environment variable IGL_INCLUDE_DIR to the root directory of your IGL installation.")
	  		MESSAGE(STATUS "Looking for IGL in ${DEF_DIR_IGL}")
		IF(IS_DIRECTORY ${DEF_DIR_IGL})
			MESSAGE(STATUS "Found!")
			SET(GUROBI_DIR ${DEF_DIR_IGL})
		ELSE()
			MESSAGE(FATAL_ERROR ${ERR_MSG})
		ENDIF()
	ENDIF()
	INCLUDE_DIRECTORIES(${IGL_INCLUDE_DIR})
ENDIF()

# OS specific options and libraries
IF(WIN32)
  # c++11 is enabled by default.
  # -Wall produces way too many warnings.
  # -pedantic is not supported.
  # Disable warning 4996.
  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4996")
  IF(${ONLINE})
	TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME} opengl32.lib)
  ELSE()
	TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME})
  ENDIF()
ELSE()
  # Enable all pedantic warnings.
  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -pedantic")
  IF(${ONLINE})
	  IF(APPLE)
		# Add required frameworks for GLFW.
		TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME} "-framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo")
	  ELSE()
		#Link the Linux OpenGL library
		TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME} "GL")
	  ENDIF()
	  ENDIF()
ENDIF()
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

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