Repository navigation
Allow building static CQiree #42
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
base: main
Are you sure you want to change the base?
Changes from 9 commits
d4f2483
67cc870
2a199d0
904acb3
5ee758b
ede775f
0f64e16
11d854f
ef6d847
ac67a47
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,15 @@ if(QIREE_USE_QSIM) | |
| list(APPEND _CQIREE_LIBS QIREE::qirqsim) | ||
| endif() | ||
|
|
||
| qiree_add_library(cqiree MODULE | ||
| if(QIREE_SHARED_LIBS) | ||
| # When building with shared libs, this should be a shared library that can | ||
| # be dlopen()'d. | ||
| set(_LIB_TYPE MODULE) | ||
| else() | ||
| set(_LIB_TYPE) | ||
| endif() | ||
|
|
||
|
ausbin marked this conversation as resolved.
Outdated
|
||
| qiree_add_library(cqiree ${_LIB_TYPE} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another alternative to this is to use an object library that allows us to build a dlopen-compatible module and a linkable (shared or static) library... @miniskar thoughts?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me know if you want me to attempt this |
||
| CQiree.cc | ||
| QireeManager.cc | ||
| ) | ||
|
|
@@ -28,10 +36,10 @@ target_link_libraries(cqiree | |
| #----------------------------------------------------------------------------# | ||
|
|
||
| # C/C++ source headers | ||
| install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/cqiree" | ||
| DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" | ||
| install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/" | ||
| DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/cqiree" | ||
| COMPONENT development | ||
| FILES_MATCHING REGEX ".*\\.hh$" | ||
| FILES_MATCHING REGEX ".*\\.hh?$" | ||
|
ausbin marked this conversation as resolved.
Outdated
|
||
| ) | ||
|
|
||
| #-----------------------------------------------------------------------------# | ||
Uh oh!
There was an error while loading. Please reload this page.