# Copyright 2023 The LightningBolt Authors # SPDX-License-Identifier: MIT cmake_minimum_required(VERSION 3.15) project(lightningbolt LANGUAGES CXX ) list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") include(Policies) include(ProjectFuncs) # default linker if(NOT LIGHTNINGBOLT_LINKER AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") set(LIGHTNINGBOLT_LINKER "lld") elseif(NOT LIGHTNINGBOLT_LINKER) set(LIGHTNINGBOLT_LINKER "bfd") endif() lb_set_alternate_linker() add_subdirectory(lib/base) add_subdirectory(lib/bolt) add_executable(lightningbolt src/main.cpp ) target_link_libraries(lightningbolt PRIVATE lb::base lb::bolt ) lb_target(lightningbolt)