-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from polyfem/nl-solver
Nl solver
- Loading branch information
Showing
77 changed files
with
6,913 additions
and
1,065 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# LBFGSpp (https://github.com/yixuan/LBFGSpp) | ||
# License: MIT | ||
|
||
if(TARGET LBGFSpp::LBGFSpp) | ||
return() | ||
endif() | ||
|
||
message(STATUS "Third-party: creating target 'LBGFSpp::LBGFSpp'") | ||
|
||
include(CPM) | ||
CPMAddPackage( | ||
NAME lbfgspp | ||
GITHUB_REPOSITORY yixuan/LBFGSpp | ||
GIT_TAG v0.2.0 | ||
DOWNLOAD_ONLY TRUE | ||
) | ||
|
||
add_library(LBFGSpp INTERFACE) | ||
target_include_directories(LBFGSpp INTERFACE "${lbfgspp_SOURCE_DIR}/include") | ||
add_library(LBFGSpp::LBFGSpp ALIAS LBFGSpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# CppNumericalSolvers (https://github.com/PatWie/CppNumericalSolvers.git) | ||
# License: MIT | ||
|
||
if(TARGET cppoptlib) | ||
return() | ||
endif() | ||
|
||
message(STATUS "Third-party: creating target 'cppoptlib'") | ||
|
||
include(CPM) | ||
CPMAddPackage( | ||
NAME cppoptlib | ||
GITHUB_REPOSITORY PatWie/CppNumericalSolvers | ||
GIT_TAG 7eddf28fa5a8872a956d3c8666055cac2f5a535d | ||
DOWNLOAD_ONLY TRUE | ||
) | ||
|
||
add_library(cppoptlib INTERFACE) | ||
target_include_directories(cppoptlib SYSTEM INTERFACE ${cppoptlib_SOURCE_DIR}/include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# json spec engine (https://github.com/geometryprocessing/json-spec-engine) | ||
# License: MIT | ||
|
||
if(TARGET jse::jse) | ||
return() | ||
endif() | ||
|
||
message(STATUS "Third-party: creating target 'jse::jse'") | ||
|
||
include(CPM) | ||
CPMAddPackage("gh:geometryprocessing/json-spec-engine#1261dc89478c7646ff99cbed8bc5357c2813565d") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# | ||
# Copyright 2020 Adobe. All rights reserved. | ||
# This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. You may obtain a copy | ||
# of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under | ||
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
# OF ANY KIND, either express or implied. See the License for the specific language | ||
# governing permissions and limitations under the License. | ||
# | ||
|
||
# spdlog (https://github.com/gabime/spdlog) | ||
# License: MIT | ||
|
||
if(TARGET spdlog::spdlog) | ||
return() | ||
endif() | ||
|
||
message(STATUS "Third-party: creating target 'spdlog::spdlog'") | ||
|
||
option(SPDLOG_INSTALL "Generate the install target" ON) | ||
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME "spdlog") | ||
|
||
include(CPM) | ||
CPMAddPackage("gh:gabime/[email protected]") | ||
|
||
set_target_properties(spdlog PROPERTIES POSITION_INDEPENDENT_CODE ON) | ||
|
||
set_target_properties(spdlog PROPERTIES FOLDER external) | ||
|
||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang" OR | ||
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") | ||
target_compile_options(spdlog PRIVATE | ||
"-Wno-sign-conversion" | ||
) | ||
endif() |
Oops, something went wrong.