generated from pybind/cmake_example
-
Notifications
You must be signed in to change notification settings - Fork 0
add gsl and nlopt #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
67f9dfb
add gsl and nlopt
shapiromatron 7046bfa
all os
shapiromatron 3fac2eb
downstream
shapiromatron dbf8d5a
continue
shapiromatron 940c308
try more on windows
shapiromatron 2d35699
get cache working
shapiromatron d13a399
continue
shapiromatron da8054c
continue
shapiromatron 6167249
fix
shapiromatron 186e0d2
just add dll not lib
shapiromatron 80d9701
try wheels
shapiromatron 30e3a1a
wheels
shapiromatron 0b97a35
change triplet
shapiromatron b190e39
use different triplet
shapiromatron f40ce8d
run tests
shapiromatron e83fb6c
try with static deps?
shapiromatron ccbe4f8
remove debugging
shapiromatron bb9c29c
use static cpp dependencies for mac and linux
shapiromatron File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 | ||
|---|---|---|---|---|
|
|
@@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 3.4...3.18) | |||
|
|
||||
| project(cppcore) | ||||
|
|
||||
| set(VCPKG_HOST_TRIPLET $ENV{VCPKG_HOST_TRIPLET}) | ||||
| set(VCPKG_HOST_TRIPLET $ENV{VCPKG_HOST_TRIPLET}) | ||||
|
|
||||
| set(PYBIND11_FINDPYTHON ON) | ||||
|
|
@@ -13,9 +12,24 @@ message(STATUS "vcpkg Triplet: ${VCPKG_HOST_TRIPLET}") | |||
| set(EIGEN_PATH "${CMAKE_SOURCE_DIR}/vcpkg_installed/${VCPKG_HOST_TRIPLET}/include") | ||||
| message(STATUS "Eigen Path: ${EIGEN_PATH}") | ||||
|
|
||||
| set(GSL_DIR "${CMAKE_SOURCE_DIR}/vcpkg_installed/${VCPKG_HOST_TRIPLET}") | ||||
| message(STATUS "GSL Path: ${GSL_DIR}") | ||||
| set(GSL_INCLUDE_DIR "${GSL_DIR}/include") | ||||
| set(GSL_LIBRARY_DIR "${GSL_DIR}/lib") | ||||
| find_library(GSL_LIB gsl PATHS "${GSL_LIBRARY_DIR}") | ||||
| find_library(GSLCBLAS_LIB gslcblas PATHS "${GSL_LIBRARY_DIR}") | ||||
|
|
||||
| set(NLOPT_DIR "${CMAKE_SOURCE_DIR}/vcpkg_installed/${VCPKG_HOST_TRIPLET}") | ||||
| message(STATUS "NLOPT Path: ${NLOPT_DIR}") | ||||
| set(NLOPT_DIR_INCLUDE_DIR "${NLOPT_DIR}/include") | ||||
| set(NLOPT_DIR_LIBRARY_DIR "${NLOPT_DIR}/lib") | ||||
| find_library(NLOPT_LIB nlopt PATHS "${NLOPT_DIR_LIBRARY_DIR}") | ||||
|
|
||||
| pybind11_add_module(cppcore src/cpp/main.cpp) | ||||
|
|
||||
| include_directories(${CMAKE_SOURCE_DIR}/src/cpp ${EIGEN_PATH}) | ||||
| include_directories(${CMAKE_SOURCE_DIR}/src/cpp ${EIGEN_PATH} ${GSL_INCLUDE_DIR} ${NLOPT_DIR_INCLUDE_DIR}) | ||||
|
||||
| include_directories(${CMAKE_SOURCE_DIR}/src/cpp ${EIGEN_PATH} ${GSL_INCLUDE_DIR} ${NLOPT_DIR_INCLUDE_DIR}) |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line appears to be a duplicate removal, but the same line is set again on line 5. This creates confusion about whether this is intentional duplication or an incomplete cleanup.