1 # ---------------------------------------------------------------------------
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 # We need JNI for this to work
10 squirreljme_include("jni.cmake")
12 # Docker is used for testing
13 squirreljme_include("docker.cmake")
16 add_library(libJvm SHARED
17 $<TARGET_OBJECTS:CorePIC>
22 # Always make this position independent
23 set_property(TARGET libJvm
24 PROPERTY POSITION_INDEPENDENT_CODE ON)
26 # The base SquirrelJME core needs to be built
27 add_dependencies(libJvm
30 # We need to find all of the includes and such
31 target_include_directories(libJvm PUBLIC
32 "${CMAKE_SOURCE_DIR}/include"
35 # Use a conforming name for the library
36 squirreljme_target_binary_name(libJvm