DarkflameServer/dECS/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
442 B
CMake
Raw Permalink Normal View History

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"
2024-12-18 04:06:41 +00:00
"Iter.h"
2024-12-17 06:25:29 +00:00
"Core.cpp"
2024-12-17 06:13:14 +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>>"
)