Add missing header and add base for shared library.
[SquirrelJME.git] / nanocoat / frontend / npapi / CMakeLists.txt
blobcddefd0c56b9c3bb16a5f312e61acf8ec2e179d8
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 add_library(npapi SHARED
10         $<TARGET_OBJECTS:CorePIC>
11         plugin.c)
13 # The base SquirrelJME core needs to be built
14 add_dependencies(libEmulator
15         CorePIC)
17 # Always make this position independent
18 set_property(TARGET npapi
19         PROPERTY POSITION_INDEPENDENT_CODE ON)
21 # We need to find all of the includes and such
22 target_include_directories(libEmulator PUBLIC
23         "${CMAKE_SOURCE_DIR}/include"
24         "${CMAKE_SOURCE_DIR}/include/3rdparty/npapi")