Files
codeql/swift/CMakeLists.txt
Nora Dimitrijević 3d24e0a2eb Swift: enable VSCode to build extractor via CMake
The `-arch=x86_64` from `swift/rules.bzl` turns out to be unnecessary,
even on Arm-based Macs.
2022-11-03 11:16:48 +01:00

24 lines
574 B
CMake

# this uses generated cmake files to setup cmake compilation of the swift extractor
# this is provided solely for IDE integration
cmake_minimum_required(VERSION 3.21)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_C_COMPILER clang)
set(CMAKE_CXX_COMPILER clang++)
if(APPLE)
set(CMAKE_OSX_ARCHITECTURES x86_64) # temporary until we can build a Universal Binary
endif()
project(codeql)
include(../misc/bazel/cmake/setup.cmake)
include_generated(//swift/extractor:cmake)
if (APPLE)
include_generated(//swift/xcode-autobuilder:cmake)
endif ()