Changeset View
Changeset View
Standalone View
Standalone View
cmake/modules/NativeExecutable.cmake
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | add_custom_command( | ||||
OUTPUT "${NATIVE_BUILD_DIR}/CMakeCache.txt" | OUTPUT "${NATIVE_BUILD_DIR}/CMakeCache.txt" | ||||
COMMAND "${CMAKE_BINARY_DIR}/config/run_native_cmake.sh" | COMMAND "${CMAKE_BINARY_DIR}/config/run_native_cmake.sh" | ||||
DEPENDS "${CMAKE_BINARY_DIR}/config/run_native_cmake.sh" | DEPENDS "${CMAKE_BINARY_DIR}/config/run_native_cmake.sh" | ||||
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" | WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" | ||||
VERBATIM USES_TERMINAL | VERBATIM USES_TERMINAL | ||||
) | ) | ||||
add_custom_target(native-cmake-build DEPENDS "${NATIVE_BUILD_DIR}/CMakeCache.txt") | add_custom_target(native-cmake-build DEPENDS "${NATIVE_BUILD_DIR}/CMakeCache.txt") | ||||
# Add the native directory to the list of file to cleanup. | |||||
set_property(DIRECTORY "${CMAKE_SOURCE_DIR}" APPEND PROPERTY ADDITIONAL_CLEAN_FILES "${NATIVE_BUILD_DIR}") | |||||
endif() | endif() |