comparison dep/animia/CMakeLists.txt @ 152:8700806c2cc2

dep/animia: awesome new breaking changes! I'm so tired
author Paper <mrpapersonic@gmail.com>
date Wed, 15 Nov 2023 02:34:59 -0500
parents d8a61e7e2a36
children bd439dd6ffc5
comparison
equal deleted inserted replaced
151:54744a48a7d7 152:8700806c2cc2
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 src/fd.cc 9 src/fd.cc
10 src/win.cc
10 ) 11 )
11 12
12 if(LINUX) 13 if(LINUX)
13 list(APPEND SRC_FILES 14 list(APPEND SRC_FILES
14 # linux 15 # linux
24 # win32 25 # win32
25 src/fd/win32.cc 26 src/fd/win32.cc
26 ) 27 )
27 endif() 28 endif()
28 29
30 if(WIN32)
31 list(APPEND SRC_FILES
32 src/win/win32.cc
33 src/util/win32.cc
34 )
35 else()
36 # soon x11 and apple stuff will be here...
37 endif()
38
29 add_library(animia SHARED ${SRC_FILES}) 39 add_library(animia SHARED ${SRC_FILES})
30 set_target_properties(animia PROPERTIES 40 set_target_properties(animia PROPERTIES
31 PUBLIC_HEADER include/animia.h 41 PUBLIC_HEADER include/animia.h
32 CXX_STANDARD 17 42 CXX_STANDARD 17
33 ) 43 )
35 if(WIN32) 45 if(WIN32)
36 target_compile_definitions(animia PUBLIC WIN32) 46 target_compile_definitions(animia PUBLIC WIN32)
37 elseif(LINUX) 47 elseif(LINUX)
38 target_compile_definitions(animia PUBLIC LINUX) 48 target_compile_definitions(animia PUBLIC LINUX)
39 elseif(UNIX) 49 elseif(UNIX)
50 if(APPLE)
51 target_compile_definitions(animia PUBLIC MACOSX)
52 endif()
40 target_compile_definitions(animia PUBLIC UNIX) 53 target_compile_definitions(animia PUBLIC UNIX)
41 endif() 54 endif()
42 55
43 target_include_directories(animia PRIVATE include) 56 target_include_directories(animia PRIVATE include)