CuPBoP/compilation/HostTranslation/CMakeLists.txt

22 lines
545 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.1)
# C project
project(
HostTranslation
DESCRIPTION "Translate CUDA host modules to CPU host modules,
mainly replace CUDA Runtime APIs with CPU Runtime APIs"
LANGUAGES CXX)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(LIB_NAME cudaRuntime2cpuRuntime)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_BUILD_TYPE Debug)
2022-06-08 03:53:32 +08:00
include_directories(./include/x86)
2022-06-08 03:53:32 +08:00
file(GLOB proj_HEADERS "include/x86/*.h")
file(GLOB proj_SOURCES "src/x86/*.cpp")
# Add core library.
add_library(${LIB_NAME} SHARED ${proj_HEADERS} ${proj_SOURCES})