Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
17b5f917
Commit
17b5f917
authored
Jul 04, 2017
by
John Kessenich
Committed by
GitHub
Jul 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #969 from d3x0r/patch-1
Add option to skip installation
parents
3f70d405
45933124
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
46 additions
and
23 deletions
+46
-23
CMakeLists.txt
CMakeLists.txt
+5
-0
CMakeLists.txt
OGLCompilersDLL/CMakeLists.txt
+4
-2
CMakeLists.txt
SPIRV/CMakeLists.txt
+5
-3
CMakeLists.txt
StandAlone/CMakeLists.txt
+6
-4
CMakeLists.txt
glslang/CMakeLists.txt
+10
-6
CMakeLists.txt
glslang/OSDependent/Unix/CMakeLists.txt
+4
-2
CMakeLists.txt
glslang/OSDependent/Windows/CMakeLists.txt
+4
-2
CMakeLists.txt
gtests/CMakeLists.txt
+4
-2
CMakeLists.txt
hlsl/CMakeLists.txt
+4
-2
No files found.
CMakeLists.txt
View file @
17b5f917
...
@@ -6,6 +6,11 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
...
@@ -6,6 +6,11 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# Adhere to GNU filesystem layout conventions
# Adhere to GNU filesystem layout conventions
include
(
GNUInstallDirs
)
include
(
GNUInstallDirs
)
option
(
SKIP_GLSLANG_INSTALL
"Skip installation"
${
SKIP_GLSLANG_INSTALL
}
)
if
(
NOT
${
SKIP_GLSLANG_INSTALL
}
)
set
(
ENABLE_GLSLANG_INSTALL ON
)
endif
()
option
(
ENABLE_AMD_EXTENSIONS
"Enables support of AMD-specific extensions"
ON
)
option
(
ENABLE_AMD_EXTENSIONS
"Enables support of AMD-specific extensions"
ON
)
option
(
ENABLE_GLSLANG_BINARIES
"Builds glslangValidator and spirv-remap"
ON
)
option
(
ENABLE_GLSLANG_BINARIES
"Builds glslangValidator and spirv-remap"
ON
)
...
...
OGLCompilersDLL/CMakeLists.txt
View file @
17b5f917
...
@@ -8,5 +8,7 @@ if(WIN32)
...
@@ -8,5 +8,7 @@ if(WIN32)
source_group
(
"Source"
FILES
${
SOURCES
}
)
source_group
(
"Source"
FILES
${
SOURCES
}
)
endif
(
WIN32
)
endif
(
WIN32
)
install
(
TARGETS OGLCompiler
if
(
ENABLE_GLSLANG_INSTALL
)
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
install
(
TARGETS OGLCompiler
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
endif
(
ENABLE_GLSLANG_INSTALL
)
SPIRV/CMakeLists.txt
View file @
17b5f917
...
@@ -53,7 +53,9 @@ if(WIN32)
...
@@ -53,7 +53,9 @@ if(WIN32)
source_group
(
"Source"
FILES
${
SPVREMAP_SOURCES
}
${
SPVREMAP_HEADERS
}
)
source_group
(
"Source"
FILES
${
SPVREMAP_SOURCES
}
${
SPVREMAP_HEADERS
}
)
endif
(
WIN32
)
endif
(
WIN32
)
install
(
TARGETS SPIRV SPVRemapper
if
(
ENABLE_GLSLANG_INSTALL
)
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
install
(
TARGETS SPIRV SPVRemapper
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
install
(
FILES
${
HEADERS
}
${
SPVREMAP_HEADERS
}
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/SPIRV/
)
install
(
FILES
${
HEADERS
}
${
SPVREMAP_HEADERS
}
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/SPIRV/
)
endif
(
ENABLE_GLSLANG_INSTALL
)
StandAlone/CMakeLists.txt
View file @
17b5f917
...
@@ -38,8 +38,10 @@ if(WIN32)
...
@@ -38,8 +38,10 @@ if(WIN32)
source_group
(
"Source"
FILES
${
SOURCES
}
)
source_group
(
"Source"
FILES
${
SOURCES
}
)
endif
(
WIN32
)
endif
(
WIN32
)
install
(
TARGETS glslangValidator
if
(
ENABLE_GLSLANG_INSTALL
)
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
install
(
TARGETS glslangValidator
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
install
(
TARGETS spirv-remap
install
(
TARGETS spirv-remap
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
endif
(
ENABLE_GLSLANG_INSTALL
)
glslang/CMakeLists.txt
View file @
17b5f917
...
@@ -94,10 +94,14 @@ if(WIN32)
...
@@ -94,10 +94,14 @@ if(WIN32)
source_group
(
"MachineIndependent
\\
Preprocessor"
REGULAR_EXPRESSION
"MachineIndependent/preprocessor/*"
)
source_group
(
"MachineIndependent
\\
Preprocessor"
REGULAR_EXPRESSION
"MachineIndependent/preprocessor/*"
)
endif
(
WIN32
)
endif
(
WIN32
)
install
(
TARGETS glslang
if
(
ENABLE_GLSLANG_INSTALL
)
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
install
(
TARGETS glslang
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
endif
(
ENABLE_GLSLANG_INSTALL
)
foreach
(
file
${
HEADERS
}
)
if
(
ENABLE_GLSLANG_INSTALL
)
get_filename_component
(
dir
${
file
}
DIRECTORY
)
foreach
(
file
${
HEADERS
}
)
install
(
FILES
${
file
}
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/glslang/
${
dir
}
)
get_filename_component
(
dir
${
file
}
DIRECTORY
)
endforeach
()
install
(
FILES
${
file
}
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/glslang/
${
dir
}
)
endforeach
()
endif
(
ENABLE_GLSLANG_INSTALL
)
glslang/OSDependent/Unix/CMakeLists.txt
View file @
17b5f917
...
@@ -2,5 +2,7 @@ add_library(OSDependent STATIC ossource.cpp ../osinclude.h)
...
@@ -2,5 +2,7 @@ add_library(OSDependent STATIC ossource.cpp ../osinclude.h)
set_property
(
TARGET OSDependent PROPERTY FOLDER glslang
)
set_property
(
TARGET OSDependent PROPERTY FOLDER glslang
)
set_property
(
TARGET OSDependent PROPERTY POSITION_INDEPENDENT_CODE ON
)
set_property
(
TARGET OSDependent PROPERTY POSITION_INDEPENDENT_CODE ON
)
install
(
TARGETS OSDependent
if
(
ENABLE_GLSLANG_INSTALL
)
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
install
(
TARGETS OSDependent
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
endif
(
ENABLE_GLSLANG_INSTALL
)
glslang/OSDependent/Windows/CMakeLists.txt
View file @
17b5f917
...
@@ -14,5 +14,7 @@ if(WIN32)
...
@@ -14,5 +14,7 @@ if(WIN32)
source_group
(
"Source"
FILES
${
SOURCES
}
)
source_group
(
"Source"
FILES
${
SOURCES
}
)
endif
(
WIN32
)
endif
(
WIN32
)
install
(
TARGETS OSDependent
if
(
ENABLE_GLSLANG_INSTALL
)
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
install
(
TARGETS OSDependent
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
endif
(
ENABLE_GLSLANG_INSTALL
)
gtests/CMakeLists.txt
View file @
17b5f917
...
@@ -28,8 +28,10 @@ if(BUILD_TESTING)
...
@@ -28,8 +28,10 @@ if(BUILD_TESTING)
add_executable
(
glslangtests
${
TEST_SOURCES
}
)
add_executable
(
glslangtests
${
TEST_SOURCES
}
)
set_property
(
TARGET glslangtests PROPERTY FOLDER tests
)
set_property
(
TARGET glslangtests PROPERTY FOLDER tests
)
glslang_set_link_args
(
glslangtests
)
glslang_set_link_args
(
glslangtests
)
install
(
TARGETS glslangtests
if
(
ENABLE_GLSLANG_INSTALL
)
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
install
(
TARGETS glslangtests
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
endif
(
ENABLE_GLSLANG_INSTALL
)
set
(
GLSLANG_TEST_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../Test"
)
set
(
GLSLANG_TEST_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../Test"
)
# Supply a default test root directory, so that manual testing
# Supply a default test root directory, so that manual testing
...
...
hlsl/CMakeLists.txt
View file @
17b5f917
...
@@ -25,5 +25,7 @@ if(WIN32)
...
@@ -25,5 +25,7 @@ if(WIN32)
source_group
(
"Source"
FILES
${
SOURCES
}
${
HEADERS
}
)
source_group
(
"Source"
FILES
${
SOURCES
}
${
HEADERS
}
)
endif
(
WIN32
)
endif
(
WIN32
)
install
(
TARGETS HLSL
if
(
ENABLE_GLSLANG_INSTALL
)
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
install
(
TARGETS HLSL
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
endif
(
ENABLE_GLSLANG_INSTALL
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment