aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-06-23 16:26:40 +0200
committerSven Gothel <[email protected]>2022-06-23 16:39:18 +0200
commitcd6f1f64cf2258929b91cb295a562285e8ccd988 (patch)
treeeca7a7b27bf290cfdacd46cd15b32f20e331aa7a /CMakeLists.txt
parent2a580b025bdc179ec74dbfb350bb902e64dfd220 (diff)
Add jau::fs::mount_image() and umount(), enable testing via '-DTEST_WITH_SUDO=ON' as it requires `root` permissions
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 853967b..488bfd4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,6 +36,14 @@ include_directories (${SYSTEM_USR_DIR})
add_subdirectory (src)
+message(STATUS "${PROJECT_NAME} TEST_WITH_SUDO = ${TEST_WITH_SUDO} (pre-set)")
+if(NOT DEFINED TEST_WITH_SUDO)
+ set(TEST_WITH_SUDO OFF)
+ message(STATUS "${PROJECT_NAME} TEST_WITH_SUDO ${TEST_WITH_SUDO} (default)")
+else()
+ message(STATUS "${PROJECT_NAME} TEST_WITH_SUDO ${TEST_WITH_SUDO} (user)")
+endif()
+
IF(BUILDJAVA)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/java_base/manifest.txt.in ${CMAKE_CURRENT_BINARY_DIR}/java_base/manifest.txt)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/java_jni/manifest.txt.in ${CMAKE_CURRENT_BINARY_DIR}/java_jni/manifest.txt)