include(${CMAKE_CURRENT_SOURCE_DIR}/config/config.cmake)

add_subdirectory(include/tango/common/log4tango)
add_subdirectory(src)

add_library(log4tango_objects OBJECT ${SOURCES})

set(LOG4TANGO_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(LOG4TANGO_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})

target_include_directories(log4tango_objects PRIVATE
    ${LOG4TANGO_SOURCE_DIR}/include
    ${LOG4TANGO_BINARY_DIR}/include
)

if(WIN32)
    target_compile_definitions(log4tango_objects PRIVATE "${windows_defs}")
else()
    target_compile_options(log4tango_objects PRIVATE -fPIC)
endif()
