-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
36 lines (30 loc) · 1.03 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
cmake_minimum_required(VERSION 3.12.4)
project(OpenCL_Evaluation_Graph VERSION 0.0.1 DESCRIPTION "OpenCL evaluation graph library")
set(CMAKE_CXX_STANDARD 17)
include(GNUInstallDirs)
add_subdirectory(library)
add_subdirectory(tests)
add_subdirectory(example/cplusplus)
add_subdirectory(wrappers/C)
set(OPTIONAL_PROJECTS)
if (WIN32)
set(OPTIONAL_PROJECTS ${OPTIONAL_PROJECTS} OpenCLEvaluationGraphManaged ExampleDotNet)
add_subdirectory(wrappers/NET/Framework)
add_subdirectory(example/dotnet)
endif()
find_package(Java)
find_package(JNI)
if (JNI_FOUND)
if (Java_FOUND)
include(UseJava)
add_subdirectory(wrappers/Java)
add_subdirectory(example/Java)
set(OPTIONAL_PROJECTS ${OPTIONAL_PROJECTS} OpenCLEvaluationGraphJava ExampleJava)
endif()
endif()
set_target_properties(OpenCLEvaluationGraph Tests Example ${OPTIONAL_PROJECTS}
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)