mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
cmake: support BUILD_SHARED_LIBS built-in option
Support building internal libraries as shared. This reduces development time by eliminating the need to re-link all binaries every time non-interface code in the library changes. Instead, can hack on libxyz, then `make libxyz`, and re-run monerod. By default BUILD_SHARED_LIBS is OFF in release build type, and ON in debug build type, but can be overriden with -D.
This commit is contained in:
parent
e1c7af35d4
commit
06bb6923c3
3 changed files with 16 additions and 4 deletions
|
@ -9,6 +9,6 @@ file(GLOB otshell_utils_sources # All files in directory:
|
|||
"*.cpp"
|
||||
)
|
||||
|
||||
add_library (otshell_utils STATIC ${otshell_utils_sources})
|
||||
add_library (otshell_utils ${otshell_utils_sources})
|
||||
set_target_properties (otshell_utils PROPERTIES OUTPUT_NAME "otshell_utils")
|
||||
#target_link_libraries (upnpc-static ${LDLIBS}) # to add used libs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue