Mercurial > minori
diff dep/animia/CMakeLists.txt @ 139:478f3b366199
dep/animia: separate lots of things, use base class for OS stuff
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 12 Nov 2023 16:43:07 -0500 |
parents | 28842a8d0c6b |
children | d8a61e7e2a36 |
line wrap: on
line diff
--- a/dep/animia/CMakeLists.txt Sun Nov 12 04:53:19 2023 -0500 +++ b/dep/animia/CMakeLists.txt Sun Nov 12 16:43:07 2023 -0500 @@ -7,6 +7,7 @@ src/util.cc src/strategist.cc ) + if(LINUX) list(APPEND SRC_FILES # linux @@ -23,9 +24,19 @@ src/fd/win32.cc ) endif() + add_library(animia SHARED ${SRC_FILES}) set_target_properties(animia PROPERTIES PUBLIC_HEADER include/animia.h CXX_STANDARD 17 ) + +if(WIN32) + target_compile_definitions(animia PUBLIC WIN32) +elseif(LINUX) + target_compile_definitions(animia PUBLIC LINUX) +elseif(UNIX) + target_compile_definitions(animia PUBLIC UNIX) +endif() + target_include_directories(animia PRIVATE include)