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
8f824265
Commit
8f824265
authored
Apr 28, 2017
by
David Seifert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make test suite optional by using CTest
parent
5a5699bd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
CMakeLists.txt
CMakeLists.txt
+3
-0
CMakeLists.txt
External/CMakeLists.txt
+5
-3
CMakeLists.txt
gtests/CMakeLists.txt
+3
-1
No files found.
CMakeLists.txt
View file @
8f824265
...
@@ -15,6 +15,9 @@ option(ENABLE_HLSL "Enables HLSL input support" ON)
...
@@ -15,6 +15,9 @@ option(ENABLE_HLSL "Enables HLSL input support" ON)
project
(
glslang
)
project
(
glslang
)
# make testing optional
include
(
CTest
)
if
(
ENABLE_AMD_EXTENSIONS
)
if
(
ENABLE_AMD_EXTENSIONS
)
add_definitions
(
-DAMD_EXTENSIONS
)
add_definitions
(
-DAMD_EXTENSIONS
)
endif
(
ENABLE_AMD_EXTENSIONS
)
endif
(
ENABLE_AMD_EXTENSIONS
)
...
...
External/CMakeLists.txt
View file @
8f824265
# Suppress all warnings from external projects.
# Suppress all warnings from external projects.
set_property
(
DIRECTORY APPEND PROPERTY COMPILE_OPTIONS -w
)
set_property
(
DIRECTORY APPEND PROPERTY COMPILE_OPTIONS -w
)
if
(
TARGET gmock
)
if
(
BUILD_TESTING
)
if
(
TARGET gmock
)
message
(
STATUS
"Google Mock already configured - use it"
)
message
(
STATUS
"Google Mock already configured - use it"
)
elseif
(
IS_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/googletest
)
elseif
(
IS_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/googletest
)
# We need to make sure Google Test does not mess up with the
# We need to make sure Google Test does not mess up with the
# global CRT settings on Windows.
# global CRT settings on Windows.
if
(
WIN32
)
if
(
WIN32
)
...
@@ -27,7 +28,8 @@ elseif(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/googletest)
...
@@ -27,7 +28,8 @@ elseif(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/googletest)
gtest_disable_pthreads
gtest_disable_pthreads
gtest_force_shared_crt
gtest_force_shared_crt
gtest_hide_internal_symbols
)
gtest_hide_internal_symbols
)
else
()
else
()
message
(
STATUS
message
(
STATUS
"Google Mock was not found - tests based on that will not build"
)
"Google Mock was not found - tests based on that will not build"
)
endif
()
endif
()
endif
()
gtests/CMakeLists.txt
View file @
8f824265
if
(
TARGET gmock
)
if
(
BUILD_TESTING
)
if
(
TARGET gmock
)
message
(
STATUS
"Google Mock found - building tests"
)
message
(
STATUS
"Google Mock found - building tests"
)
set
(
TEST_SOURCES
set
(
TEST_SOURCES
...
@@ -52,4 +53,5 @@ if (TARGET gmock)
...
@@ -52,4 +53,5 @@ if (TARGET gmock)
add_test
(
NAME glslang-gtests
add_test
(
NAME glslang-gtests
COMMAND glslangtests --test-root
"
${
GLSLANG_TEST_DIRECTORY
}
"
)
COMMAND glslangtests --test-root
"
${
GLSLANG_TEST_DIRECTORY
}
"
)
endif
()
endif
()
endif
()
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