Basically, cmake doesn't support linking static libs into a shared lib. The correct way is to just specify source files in subdirectories directly as source files of the shared library. This patch changes that. Also, after this commit, when DEBUG_CURLIO is defined, every call to libcurl is printed to llinfos (or to dc::curl when using libcwd).
21 lines
605 B
CMake
21 lines
605 B
CMake
include_directories (${CMAKE_SOURCE_DIR}/cwdebug)
|
|
|
|
set(cwdebug_SOURCE_FILES
|
|
${CMAKE_SOURCE_DIR}/cwdebug/debug.cc
|
|
${CMAKE_SOURCE_DIR}/cwdebug/debug_libcurl.cc
|
|
)
|
|
|
|
set(cwdebug_HEADER_FILES
|
|
${CMAKE_SOURCE_DIR}/cwdebug/cwdebug.h
|
|
${CMAKE_SOURCE_DIR}/cwdebug/sys.h
|
|
${CMAKE_SOURCE_DIR}/cwdebug/debug.h
|
|
${CMAKE_SOURCE_DIR}/cwdebug/debug_ostream_operators.h
|
|
${CMAKE_SOURCE_DIR}/cwdebug/debug_libcurl.h
|
|
)
|
|
|
|
set_source_files_properties(${cwdebug_HEADER_FILES}
|
|
PROPERTIES HEADER_FILE_ONLY TRUE)
|
|
|
|
list(APPEND cwdebug_SOURCE_FILES ${cwdebug_HEADER_FILES})
|
|
|