-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
52 lines (35 loc) · 1.46 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# MERCATOR
# Copyright (C) 2021 Washington University in St. Louis; all rights reserved.
# for VERSION
cmake_policy(SET CMP0048 NEW)
project(MERCATOR
VERSION 2.0.0
LANGUAGES CUDA CXX)
cmake_minimum_required(VERSION 3.8)
######################################################################
# INSTALL TARGETS
######################################################################
set(CMAKE_INSTALL_PREFIX /project/cassini/mercator-${PROJECT_VERSION})
######################################################################
# PACKAGE DEPENDENCIES
######################################################################
# Point to the LLVM installation's path (required)
set(LLVM_PATH /project/cassini/llvm-11.0.0)
#set(LLVM_PATH /usr)
######################################################################
# MAKE CONFIGURATION
######################################################################
#set(CMAKE_BUILD_TYPE debug)
set(CMAKE_BUILD_TYPE release)
#set(CMAKE_VERBOSE_MAKEFILE on)
#####################################################################
configure_file(runtime/version.h.in
runtime/version.h)
add_subdirectory(compiler)
add_subdirectory(doc)
install(FILES mercator-rules.txt DESTINATION .)
install(DIRECTORY runtime DESTINATION .
PATTERN "*.h.in" EXCLUDE
PATTERN "*~" EXCLUDE)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/runtime/version.h
DESTINATION runtime)