-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (25 loc) · 937 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
32
33
34
35
36
cmake_minimum_required(VERSION 3.1)
set (CMAKE_CXX_STANDARD 14)
set (BUILD_SHARED_LIBS ON)
project(
cgra-me
VERSION 1.0.0
LANGUAGES CXX C
)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(CGRAME_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/inc)
set(CGRAME_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(PUGIXML_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/pugixml)
set(SCIP_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/scipoptsuite/scip-4.0.0/src)
add_subdirectory(thirdparty)
add_subdirectory(src)
option (BUILD_LLVM_PASSES
"Build Loop extraction llvm passes. Requires LLVM" OFF)
option (USE_ADL1
"Use new parser for ADL" ON)
if(BUILD_LLVM_PASSES)
add_subdirectory(llvm-passes)
endif(BUILD_LLVM_PASSES)