[CMAKE] Introduce the atl_classes interface library

This takes care of adding the relvant include directory and the _ATL_NO_EXCEPTIONS define, if needed
This commit is contained in:
Jérôme Gardou 2020-09-18 11:08:58 +02:00 committed by Jérôme Gardou
parent 8b28f8d9ba
commit 907025a018
36 changed files with 62 additions and 172 deletions

View file

@ -1,4 +1,5 @@
add_subdirectory(atl)
add_subdirectory(cmlib)
add_subdirectory(inflib)

View file

@ -0,0 +1,8 @@
add_library(atl_classes INTERFACE)
target_include_directories(atl_classes INTERFACE
$<$<COMPILE_LANGUAGE:CXX>:${CMAKE_CURRENT_SOURCE_DIR}>)
target_compile_definitions(atl_classes INTERFACE
"$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<BOOL:$<TARGET_PROPERTY:WITH_CXX_EXCEPTIONS>>>>:_ATL_NO_EXCEPTIONS>")