-
Notifications
You must be signed in to change notification settings - Fork 18
/
CMakeLists.txt
48 lines (40 loc) · 1.26 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(ArrayFire-Java)
SET(AF_JAR ArrayFire)
SET(AF_LIB af_java)
OPTION(BUILD_EXAMPLES "Option for building examples" ON)
# Set a default build type if none was specified
IF(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
# Set the possible values of build type for cmake-gui
SET_PROPERTY(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release"
"MinSizeRel" "RelWithDebInfo")
ENDIF()
FIND_PACKAGE(Java REQUIRED)
INCLUDE(UseJava)
ADD_SUBDIRECTORY(src)
ADD_JAR(${AF_JAR}
com/arrayfire/Algorithm.java
com/arrayfire/Arith.java
com/arrayfire/ArrayFire.java
com/arrayfire/Array.java
com/arrayfire/Data.java
com/arrayfire/DoubleComplex.java
com/arrayfire/FloatComplex.java
com/arrayfire/Image.java
com/arrayfire/Signal.java
com/arrayfire/Util.java
com/arrayfire/Statistics.java
com/arrayfire/JNIException.java
com/arrayfire/ArrayFireException.java
com/arrayfire/Graphics.java
com/arrayfire/Window.java
com/arrayfire/Seq.java
com/arrayfire/Index.java
com/arrayfire/AFLibLoader.java
)
ADD_DEPENDENCIES(${AF_JAR} ${AF_LIB})
INSTALL_JAR(${AF_JAR} ".")
IF(BUILD_EXAMPLES)
ADD_SUBDIRECTORY(examples)
ENDIF()