-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
24 lines (18 loc) · 724 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
24 lines (18 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cmake_minimum_required(VERSION 3.12.0)
project(compiler-interpreter)
include(FetchContent)
function(add_thirdparty PROJECT_NAME GIT_REPOSITORY GIT_TAG)
FetchContent_Declare(
${PROJECT_NAME}
GIT_REPOSITORY ${GIT_REPOSITORY}
GIT_TAG ${GIT_TAG}
)
FetchContent_MakeAvailable(${PROJECT_NAME})
endfunction()
add_thirdparty(gflags https://github.com/gflags/gflags.git master)
add_thirdparty(glog https://github.com/google/glog.git master)
add_thirdparty(gtest https://github.com/google/googletest.git main)
message(STATUS "GLOG SOURCE ${glog_SOURCE_DIR} ${glog_BINARY_DIR}")
include_directories(${glog_BINARY_DIR})
include_directories(${glog_SOURCE_DIR}/src)
add_subdirectory(interpreter)