-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
68 lines (61 loc) · 1.96 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
cmake_minimum_required(VERSION 3.0)
include(${CMAKE_SOURCE_DIR}/system-config.cmake OPTIONAL)
project(yandex_contest_invoker_compat_jni)
if(BunsanCMakeBuiltin)
BunsanCMakeLoad()
else()
find_package(BunsanCMake CONFIG REQUIRED)
endif()
bunsan_add_shared_library(${PROJECT_NAME}
src/Context.cpp
src/ContextJVM.cpp
src/ContextThread.cpp
src/String.cpp
src/CxxClass.cpp
src/Collection.cpp
src/NotNull.cpp
src/impl/PackageInit.cpp
src/impl/Container.cpp
src/impl/Filesystem.cpp
src/impl/ProcessGroup.cpp
src/impl/Process.cpp
src/impl/Stream.cpp
src/impl/Pipe.cpp
src/impl/Log.cpp
src/impl/File.cpp
src/impl/FdAlias.cpp
src/impl/ContainerConfig.cpp
src/impl/ControlProcessConfig.cpp
src/impl/process/Result.cpp
src/impl/process/ResourceUsage.cpp
src/impl/process/ResourceLimits.cpp
src/impl/process/DefaultSettings.cpp
src/impl/process_group/Result.cpp
src/impl/process_group/ResourceUsage.cpp
src/impl/process_group/ResourceLimits.cpp
src/impl/process_group/DefaultSettings.cpp
src/impl/lxc/Config.cpp
src/impl/lxc/MountConfig.cpp
src/impl/lxc/RootfsConfig.cpp
src/impl/filesystem/Config.cpp
src/impl/filesystem/File.cpp
src/impl/filesystem/Directory.cpp
src/impl/filesystem/Device.cpp
src/impl/filesystem/RegularFile.cpp
src/impl/filesystem/SymLink.cpp
src/impl/filesystem/Fifo.cpp
src/impl/unistd/MountEntry.cpp
src/impl/unistd/FileStatus.cpp
src/impl/unistd/access/Id.cpp
)
target_include_directories(${PROJECT_NAME} PRIVATE jni_include)
bunsan_use_bunsan_package(${PROJECT_NAME} yandex_contest_invoker_compat_common
yandex_contest_invoker_compat_common
)
find_package(JNI REQUIRED)
target_include_directories(${PROJECT_NAME} PUBLIC ${JNI_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} PUBLIC ${JAVA_JVM_LIBRARY})
bunsan_install_headers()
bunsan_install_targets(${PROJECT_NAME})
bunsan_install_project()
bunsan_include_tests()