From aa9fa15bdf8bb466830bd33cd0676275e498da9b Mon Sep 17 00:00:00 2001 From: Chris Kitching Date: Mon, 16 Oct 2017 21:12:28 +0100 Subject: [PATCH] Use a cmake glob for collecting hipify sources Should make breaking this monstrosity into multiple files a bit easier... [ROCm/hip commit: be34a017ef93e3255788b92fef639364b9b12dc1] --- projects/hip/hipify-clang/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/projects/hip/hipify-clang/CMakeLists.txt b/projects/hip/hipify-clang/CMakeLists.txt index c7b49f5229..cb8354157b 100644 --- a/projects/hip/hipify-clang/CMakeLists.txt +++ b/projects/hip/hipify-clang/CMakeLists.txt @@ -29,10 +29,9 @@ message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") include_directories(${LLVM_INCLUDE_DIRS}) link_directories(${LLVM_LIBRARY_DIRS}) add_definitions(${LLVM_DEFINITIONS}) -add_llvm_executable(hipify-clang - src/Cuda2Hip.cpp - src/CUDA2HipMap.cpp -) + +file(GLOB_RECURSE HIPIFY_SOURCES src/*.cpp) +add_llvm_executable(hipify-clang ${HIPIFY_SOURCES}) set(CMAKE_CXX_COMPILER ${LLVM_TOOLS_BINARY_DIR}/clang++) set(CMAKE_C_COMPILER ${LLVM_TOOLS_BINARY_DIR}/clang)