Files
rocm-systems/runtime/hsa-amd-aqlprofile/CMakeLists.txt
T
Evgeny 4174f07fd1 hsa-runtime integration
Change-Id: I48968966ffe164218ebff88d0e3a1268e96bf1dd
2017-07-05 10:55:30 -04:00

31 lines
880 B
CMake

#
# Minimum version of cmake required
#
cmake_minimum_required ( VERSION 3.5.0 )
#
# Setup flag to be verbose or not
#
set ( CMAKE_VERBOSE_MAKEFILE TRUE CACHE BOOL "Verbose Output" FORCE )
set ( ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR} )
set ( PROJ_DIR ${ROOT_DIR}/src )
set ( TEST_DIR ${ROOT_DIR}/test )
#
# Build sources
#
include ( ${PROJ_DIR}/CMakeLists.txt )
#
# Build tests
#
add_subdirectory ( ${TEST_DIR} ${PROJECT_BINARY_DIR}/test )
#
# Style format
#
execute_process ( COMMAND sh -xc "/usr/bin/find ${PROJ_DIR} ${TEST_DIR} -name '*.cpp' -exec /usr/bin/clang-format -i -style=file \{\} \;" )
execute_process ( COMMAND sh -xc "/usr/bin/find ${PROJ_DIR} ${TEST_DIR} -name '*.hpp' -exec /usr/bin/clang-format -i -style=file \{\} \;" )
execute_process ( COMMAND sh -xc "/usr/bin/find ${PROJ_DIR} ${TEST_DIR} -name '*.h' -exec /usr/bin/clang-format -i -style=file \{\} \;" )