-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (23 loc) · 992 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
project(minitorch)
# ================================================================
# prerequist
# ================================================================
# cxx compile standard
set(CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# option for unittest switch
option(ENABLE_UNITTEST "unittest for libminimal" OFF)
# project version setup
set(MINITORCH_MAJOR_VERSION "0")
set(MINITORCH_MINOR_VERSION "0")
set(MINITORCH_PATCH_VERSION "1")
# debug message
message(STATUS "======================================================")
message(STATUS "minitorch release version: ${MINITORCH_MAJOR_VERSION}.${MINITORCH_MINOR_VERSION}.${MINITORCH_PATCH_VERSION}")
message(STATUS "minitorch unittest flag: ${ENABLE_UNITTEST}")
message(STATUS "======================================================")
# generate library
include_directories(BEFORE ${PROJECT_SOURCE_DIR}/aten/src/)
add_subdirectory(c10)
add_subdirectory(aten/src/ATen)