CuPBoP/runtime/CMakeLists.txt

20 lines
586 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
project(
X86runtime
DESCRIPTION "Implementation CUDA runtime API with x86"
LANGUAGES CXX)
set(LIB_NAME x86Runtime)
set(CMAKE_VERBOSE_MAKEFILE ON)
# compile threadPool implementation
add_subdirectory(threadPool)
# compile x86 runtime library
2022-06-18 10:20:13 +08:00
include_directories(./include/)
2022-06-08 03:53:32 +08:00
include_directories(./include/x86)
2022-06-18 10:20:13 +08:00
include_directories(./threadPool/include/)
2022-06-08 03:53:32 +08:00
include_directories(./threadPool/include/x86)
include_directories(../external/moodycamel/)
2022-06-18 10:20:13 +08:00
file(GLOB proj_SOURCES "src/x86/*.cpp")
add_library(${LIB_NAME} SHARED ${proj_SOURCES})