cpp-peglib/pl0/CMakeLists.txt
2024-06-17 13:03:53 -04:00

13 lines
367 B
CMake

cmake_minimum_required(VERSION 3.14)
project(pl0)
find_package(LLVM REQUIRED CONFIG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter")
add_executable(pl0 pl0.cc)
set(add_link_deps ${add_link_deps} LLVM)
target_include_directories(pl0 PUBLIC ${LLVM_INCLUDE_DIRS})
target_include_directories(pl0 PRIVATE ..)
target_link_libraries(pl0 ${add_link_deps})