Mercurial > minori
view dep/animia/CMakeLists.txt @ 138:28842a8d0c6b
dep/animia: huge refactor (again...)
but this time, it actually compiles! and it WORKS! (on win32... not sure about
other platforms...)
configuring players is still not supported: at some point I'll prune something
up...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 12 Nov 2023 04:53:19 -0500 |
parents | 69db40272acd |
children | 478f3b366199 |
line wrap: on
line source
cmake_minimum_required(VERSION 3.9) project(animia) set(SRC_FILES # any non-platform-specific files go here src/animia.cc src/player.cc src/util.cc src/strategist.cc ) if(LINUX) list(APPEND SRC_FILES # linux src/fd/linux.cc ) elseif(UNIX) # this won't run on Linux list(APPEND SRC_FILES # bsd src/fd/bsd.cc ) elseif(WIN32) list(APPEND SRC_FILES # win32 src/fd/win32.cc ) endif() add_library(animia SHARED ${SRC_FILES}) set_target_properties(animia PROPERTIES PUBLIC_HEADER include/animia.h CXX_STANDARD 17 ) target_include_directories(animia PRIVATE include)