Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Merge requests
!115
Resolve "Slang Compiler"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Slang Compiler"
144-slang-compiler
into
develop
Overview
2
Commits
7
Pipelines
0
Changes
3
Merged
Tobias Frisch
requested to merge
144-slang-compiler
into
develop
1 year ago
Overview
2
Commits
7
Pipelines
0
Changes
3
Expand
Closes
#144 (closed)
0
0
Merge request reports
Viewing commit
691addba
Show latest version
3 files
+
57
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
Verified
691addba
Add basic cmake configuration for slang
· 691addba
Tobias Frisch
authored
1 year ago
Signed-off-by:
Tobias Frisch
<
tfrisch@uni-koblenz.de
>
modules/shader_compiler/config/slang/CMakeLists.txt
0 → 100644
+
45
−
0
Options
cmake_minimum_required
(
VERSION 3.9
)
project
(
slang
)
# settings c++ standard for slang
set
(
CMAKE_CXX_STANDARD 20
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
find_package
(
Vulkan REQUIRED
)
set
(
slang_base external/source/base
)
set
(
slang_dir ../../
${
vkcv_shader_compiler_lib
}
/slang
)
set
(
slang_source
${
slang_dir
}
/source
)
set
(
slang_source_compiler_core
${
slang_source
}
/compiler-core
)
set
(
slang_source_core
${
slang_source
}
/core
)
set
(
slang_source_slang
${
slang_source
}
/slang
)
file
(
GLOB slang_sources
${
slang_source_compiler_core
}
/*.cpp
${
slang_source_core
}
/*.cpp
${
slang_source_slang
}
/*.cpp
)
if
(
${
VMA_STATIC_VULKAN_FUNCTIONS
}
)
add_library
(
slang STATIC
${
slang_sources
}
)
else
()
add_library
(
slang SHARED
${
slang_sources
}
)
endif
()
set_target_properties
(
slang PROPERTIES
CXX_EXTENSIONS OFF
CXX_STANDARD
${
CMAKE_CXX_STANDARD
}
CXX_STANDARD_REQUIRED ON
)
target_include_directories
(
slang PUBLIC
${
slang_base
}
${
slang_source
}
)
# Only link to Vulkan if static linking is used
if
(
NOT
${
VMA_DYNAMIC_VULKAN_FUNCTIONS
}
)
target_link_libraries
(
slang PUBLIC Vulkan::Vulkan
)
endif
()
Loading