diff options
| author | yum <yum.food.vr@gmail.com> | 2025-10-11 17:24:53 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-10-11 17:24:53 -0700 |
| commit | 56bae6342544974194468661e0827f425e2a79bb (patch) | |
| tree | 4997e40f5432908487b23882879366ede5d8f265 /CMakeLists.txt | |
| parent | e0f317e187aa4ccf90a3a0e77b941b46f76101c5 (diff) | |
more cleanup
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f289121..71b0a88 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,11 +5,19 @@ set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) +include(FetchContent) + set(SLANG_SDK_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/slang/build/slang-2025.18.2-windows-x86_64") if(NOT EXISTS "${SLANG_SDK_ROOT}") message(FATAL_ERROR "Expected Slang SDK directory at ${SLANG_SDK_ROOT}") endif() +FetchContent_Declare( + abseil + URL https://github.com/abseil/abseil-cpp/archive/refs/tags/20240116.1.zip +) +FetchContent_MakeAvailable(abseil) + add_executable(modular_slang main.cc) set_target_properties(modular_slang PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" @@ -21,6 +29,8 @@ target_include_directories(modular_slang PRIVATE target_link_libraries(modular_slang PRIVATE "${SLANG_SDK_ROOT}/lib/slang.lib" + absl::status + absl::statusor ) if(MSVC) |
