mirror of
https://github.com/monero-project/monero.git
synced 2025-07-31 22:58:41 -04:00
cmake: refactor common code with executables
This commit is contained in:
parent
89cff7bddc
commit
c773f465ca
5 changed files with 28 additions and 72 deletions
|
@ -48,12 +48,7 @@ set(daemon_headers
|
|||
../p2p/p2p_protocol_defs.h
|
||||
../p2p/stdafx.h)
|
||||
|
||||
source_group(daemon
|
||||
FILES
|
||||
${daemon_sources}
|
||||
${daemon_headers})
|
||||
|
||||
add_executable(daemon
|
||||
bitmonero_add_executable(daemon
|
||||
${daemon_sources}
|
||||
${daemon_headers})
|
||||
target_link_libraries(daemon
|
||||
|
@ -72,18 +67,6 @@ target_link_libraries(daemon
|
|||
${EXTRA_LIBRARIES})
|
||||
add_dependencies(daemon
|
||||
version)
|
||||
set_property(TARGET daemon
|
||||
PROPERTY
|
||||
FOLDER "prog")
|
||||
set_property(TARGET daemon
|
||||
PROPERTY
|
||||
OUTPUT_NAME "bitmonerod")
|
||||
|
||||
if (STATIC)
|
||||
set_property(TARGET daemon
|
||||
PROPERTY
|
||||
LINK_SEARCH_START_STATIC 1)
|
||||
set_property(TARGET daemon
|
||||
PROPERTY
|
||||
LINK_SEARCH_END_STATIC 1)
|
||||
endif ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue