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) # third party vendor dependencies #add_subdirectory(third_party) add_executable(lightningbolt src/main.cpp ) target_link_libraries(lightningbolt PRIVATE lb::base ) lb_target(lightningbolt)