2022-01-12 00:01:42 +08:00
|
|
|
cmake_minimum_required(VERSION 3.1)
|
|
|
|
|
|
|
|
# C project
|
|
|
|
project(
|
|
|
|
KernelTranslation
|
|
|
|
DESCRIPTION
|
|
|
|
"Translate SPMD Kernel to MPMD format with hierarchical collapsing"
|
|
|
|
LANGUAGES CXX)
|
|
|
|
|
|
|
|
set(CMAKE_VERBOSE_MAKEFILE ON)
|
|
|
|
set(LIB_NAME spmd2mpmd)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
set(CMAKE_BUILD_TYPE Debug)
|
2022-06-08 03:53:32 +08:00
|
|
|
include_directories(./include/x86)
|
2022-09-16 06:19:13 +08:00
|
|
|
include_directories(../../common)
|
2022-01-12 00:01:42 +08:00
|
|
|
|
2022-06-08 03:53:32 +08:00
|
|
|
file(GLOB proj_HEADERS "include/x86/*.h")
|
|
|
|
file(GLOB proj_SOURCES "src/x86/*.cpp")
|
2022-01-12 00:01:42 +08:00
|
|
|
|
|
|
|
# Add core library.
|
2022-06-18 10:20:13 +08:00
|
|
|
add_library(${LIB_NAME} STATIC ${proj_HEADERS} ${proj_SOURCES})
|