cmake: handle private vs. public headers

This commit is contained in:
Ben Boeckel 2014-10-21 12:38:00 -04:00
parent 55ca7d3b34
commit f53f04724c
11 changed files with 81 additions and 20 deletions

View file

@ -32,7 +32,9 @@ set(common_sources
dns_utils.cpp
util.cpp)
set(common_headers
set(common_headers)
set(common_private_headers
base58.h
boost_serialization_helper.h
command_line.h
@ -43,9 +45,12 @@ set(common_headers
util.h
varint.h)
bitmonero_private_headers(common
${common_private_headers})
bitmonero_add_library(common
${common_sources}
${common_headers})
${common_headers}
${common_private_headers})
target_link_libraries(common
PRIVATE
crypto
@ -54,3 +59,6 @@ target_link_libraries(common
${Boost_FILESYSTEM_LIBRARY}
${Boost_SYSTEM_LIBRARY}
${EXTRA_LIBRARIES})
#bitmonero_install_headers(common
# ${common_headers})