Cherry pick threading, atomic, and list changes from wip-scritchui.
[SquirrelJME.git] / nanocoat / lib / base / CMakeLists.txt
blob4a6a6408f4ce07e9d6a398e73652ae2d377ffb53
1 # ---------------------------------------------------------------------------
2 # SquirrelJME
3 #     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
4 # ---------------------------------------------------------------------------
5 # SquirrelJME is under the Mozilla Public License Version 2.0.
6 # See license.mkd for licensing and copyright information.
7 # ---------------------------------------------------------------------------
9 # Declare Base library
10 squirreljme_multilib_add_library(Base
11         alloc.c
12         allocSizeOf.c
13         atomic.c
14         comparator.c
15         debug.c
16         dylib.c
17         error.c
18         except.c
19         list.c
20         multithread.c
21         recycle.c
22         refcount.c
23         seekable.c
24         stream.c
25         tree.c
26         util.c
27         zip.c)
29 # Include main headers
30 squirreljme_multilib_target_include_directories(Base
31         "${CMAKE_SOURCE_DIR}/include")
33 # Base library goes here
34 squirreljme_multilib_target_binary_output(Base
35         "${SQUIRRELJME_DYLIB_OUTPUT_DIR}")
37 # Dynamic linker library is needed
38 squirreljme_multilib_target_link_libraries(Base
39         ${CMAKE_DL_LIBS})