2016-08-06 18:21:54 +02:00
|
|
|
file(GLOB hdrs "*.h")
|
|
|
|
file(GLOB srcs "*.cpp")
|
|
|
|
|
|
|
|
add_library(simplecpp_objs OBJECT ${srcs} ${hdrs})
|
2020-04-22 11:04:19 +02:00
|
|
|
# TODO: conflicts with ANALYZE_* options
|
2020-03-31 09:33:58 +02:00
|
|
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
2020-04-09 09:23:31 +02:00
|
|
|
add_library(simplecpp_objs_sanitized OBJECT EXCLUDE_FROM_ALL ${srcs} ${hdrs})
|
2020-03-31 09:33:58 +02:00
|
|
|
target_compile_options(simplecpp_objs_sanitized PRIVATE -fsanitize=address)
|
|
|
|
endif()
|
2016-08-06 18:21:54 +02:00
|
|
|
|
|
|
|
|