cpp-peglib/pl0/CMakeLists.txt

13 lines
367 B
CMake
Raw Normal View History

2024-06-17 17:03:53 +00:00
cmake_minimum_required(VERSION 3.14)
2020-10-02 01:26:04 +00:00
project(pl0)
2020-01-25 03:54:03 +00:00
2024-06-17 17:03:53 +00:00
find_package(LLVM REQUIRED CONFIG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter")
2020-01-25 03:54:03 +00:00
2020-10-02 01:26:04 +00:00
add_executable(pl0 pl0.cc)
2020-01-25 03:54:03 +00:00
set(add_link_deps ${add_link_deps} LLVM)
target_include_directories(pl0 PUBLIC ${LLVM_INCLUDE_DIRS})
2024-06-17 17:03:53 +00:00
target_include_directories(pl0 PRIVATE ..)
2020-01-25 03:54:03 +00:00
target_link_libraries(pl0 ${add_link_deps})