1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
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()
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
|