EtchDroid/dmg2img/CMakeLists.txt

24 lines
704 B
Text
Raw Permalink Normal View History

2018-08-16 11:39:37 +00:00
cmake_minimum_required(VERSION 3.4)
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/src/main/assets/bin/${ANDROID_ABI}")
find_program(CCACHE_FOUND ccache)
2018-12-03 10:48:04 +00:00
if (CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
2018-12-03 10:48:04 +00:00
endif (CCACHE_FOUND)
2018-08-16 11:39:37 +00:00
execute_process(
2018-12-03 10:48:04 +00:00
COMMAND truncate -s 0 crypto/compat/getpagesize.c
WORKING_DIRECTORY src/c/libressl)
2018-08-16 11:39:37 +00:00
execute_process(
2018-12-03 10:48:04 +00:00
COMMAND touch VERSION
WORKING_DIRECTORY src/c/libressl)
2018-08-16 11:39:37 +00:00
include_directories(src/c/bzip2)
include_directories(src/c/libressl/include)
add_subdirectory(src/c/bzip2)
add_subdirectory(src/c/libressl)
add_subdirectory(src/c/dmg2img)