-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
45 lines (39 loc) · 1.06 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
cmake_minimum_required(VERSION 3.5)
project(polyglot LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(LLVM REQUIRED)
add_executable(polyglot-cpp
core/CppWrapperWriter.cpp
core/CppWrapperWriter.h
core/CppTypeProxyWriter.cpp
core/CppTypeProxyWriter.h
core/DWrapperWriter.cpp
core/DWrapperWriter.h
core/PolyglotAST.cpp
core/PolyglotAST.h
core/RustWrapperWriter.cpp
core/RustWrapperWriter.h
core/TypeProxyWriter.h
core/Utils.cpp
core/Utils.h
core/ZigWrapperWriter.cpp
core/ZigWrapperWriter.h
core/WrapperWriter.cpp
core/WrapperWriter.h
polyglot-cpp/main.cpp
polyglot-cpp/CppParser.cpp
polyglot-cpp/CppParser.h
polyglot-cpp/CppUtils.cpp
polyglot-cpp/CppUtils.h
)
target_include_directories(polyglot-cpp PRIVATE core polyglot-cpp)
target_link_libraries(polyglot-cpp PRIVATE
clang-cpp
LLVM
)
include(GNUInstallDirs)
install(TARGETS polyglot-cpp
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)