-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cmake] Change directory structure for cpp2py library to match app4triqs
- Loading branch information
Showing
28 changed files
with
42 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
add_library(cpp2py signal_handler.cpp exceptions.cpp) | ||
add_library(cpp2py::cpp2py ALIAS cpp2py) | ||
|
||
target_compile_options(cpp2py PRIVATE -std=c++14 -fPIC) | ||
target_include_directories(cpp2py | ||
PUBLIC | ||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/c++> | ||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/c++> | ||
) | ||
|
||
# Install the library in lib and export the cpp2py target | ||
install(TARGETS cpp2py EXPORT cpp2py-targets DESTINATION lib) | ||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h" PATTERN "*.hxx") | ||
|
||
# --- Python --- | ||
|
||
target_link_libraries(cpp2py PUBLIC python_and_numpy) | ||
|
||
# --------------- | ||
|
||
# Install the exported targets | ||
install(EXPORT cpp2py-targets NAMESPACE cpp2py:: DESTINATION lib/cmake/cpp2py) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.