2024-12-17 06:25:29 +00:00
|
|
|
set(gcc_like_cxx "$<COMPILE_LANG_AND_ID:CXX,ARMClang,AppleClang,Clang,GNU,LCC>")
|
|
|
|
set(msvc_cxx "$<COMPILE_LANG_AND_ID:CXX,MSVC>")
|
|
|
|
|
2024-12-17 06:13:14 +00:00
|
|
|
add_library(dECS STATIC
|
2024-12-17 06:25:29 +00:00
|
|
|
"Core.h"
|
|
|
|
"Core.cpp"
|
2024-12-17 06:13:14 +00:00
|
|
|
)
|
2024-12-14 19:47:35 +00:00
|
|
|
target_include_directories(dECS PUBLIC .)
|
2024-12-17 06:13:14 +00:00
|
|
|
target_link_libraries(dECS PRIVATE dCommon magic_enum::magic_enum)
|
2024-12-17 06:25:29 +00:00
|
|
|
target_compile_options(dECS PRIVATE
|
|
|
|
"$<${gcc_like_cxx}:$<BUILD_INTERFACE:-Wall;-Wextra>>"
|
|
|
|
"$<${msvc_cxx}:$<BUILD_INTERFACE:/W3>>"
|
|
|
|
)
|