comparison 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
comparison
equal deleted inserted replaced
138:28842a8d0c6b 139:478f3b366199
5 src/animia.cc 5 src/animia.cc
6 src/player.cc 6 src/player.cc
7 src/util.cc 7 src/util.cc
8 src/strategist.cc 8 src/strategist.cc
9 ) 9 )
10
10 if(LINUX) 11 if(LINUX)
11 list(APPEND SRC_FILES 12 list(APPEND SRC_FILES
12 # linux 13 # linux
13 src/fd/linux.cc 14 src/fd/linux.cc
14 ) 15 )
21 list(APPEND SRC_FILES 22 list(APPEND SRC_FILES
22 # win32 23 # win32
23 src/fd/win32.cc 24 src/fd/win32.cc
24 ) 25 )
25 endif() 26 endif()
27
26 add_library(animia SHARED ${SRC_FILES}) 28 add_library(animia SHARED ${SRC_FILES})
27 set_target_properties(animia PROPERTIES 29 set_target_properties(animia PROPERTIES
28 PUBLIC_HEADER include/animia.h 30 PUBLIC_HEADER include/animia.h
29 CXX_STANDARD 17 31 CXX_STANDARD 17
30 ) 32 )
33
34 if(WIN32)
35 target_compile_definitions(animia PUBLIC WIN32)
36 elseif(LINUX)
37 target_compile_definitions(animia PUBLIC LINUX)
38 elseif(UNIX)
39 target_compile_definitions(animia PUBLIC UNIX)
40 endif()
41
31 target_include_directories(animia PRIVATE include) 42 target_include_directories(animia PRIVATE include)