Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
632d69ff
Unverified
Commit
632d69ff
authored
Jun 27, 2023
by
Artur Wojcik
Committed by
GitHub
Jun 27, 2023
Browse files
make building tests optional (on by default) (#1887)
parent
84a8f450
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
CMakeLists.txt
CMakeLists.txt
+6
-2
test/CMakeLists.txt
test/CMakeLists.txt
+0
-2
No files found.
CMakeLists.txt
View file @
632d69ff
...
@@ -48,7 +48,9 @@ endif()
...
@@ -48,7 +48,9 @@ endif()
set
(
CMAKE_BUILD_RPATH
"
${
CMAKE_BINARY_DIR
}
/lib"
)
set
(
CMAKE_BUILD_RPATH
"
${
CMAKE_BINARY_DIR
}
/lib"
)
project
(
migraphx
)
project
(
migraphx LANGUAGES C CXX
)
include
(
CTest
)
find_package
(
ROCM REQUIRED
)
find_package
(
ROCM REQUIRED
)
find_path
(
HALF_INCLUDE_DIR half.hpp PATH_SUFFIXES half
)
find_path
(
HALF_INCLUDE_DIR half.hpp PATH_SUFFIXES half
)
...
@@ -269,7 +271,9 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)
...
@@ -269,7 +271,9 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)
set
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/bin
)
set
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/bin
)
add_subdirectory
(
src
)
add_subdirectory
(
src
)
add_subdirectory
(
docs
)
add_subdirectory
(
docs
)
add_subdirectory
(
test
)
if
(
BUILD_TESTING
)
add_subdirectory
(
test
)
endif
()
add_subdirectory
(
tools
)
add_subdirectory
(
tools
)
set
(
DEST_DIR
${
CMAKE_BINARY_DIR
}
)
set
(
DEST_DIR
${
CMAKE_BINARY_DIR
}
)
...
...
test/CMakeLists.txt
View file @
632d69ff
...
@@ -24,8 +24,6 @@
...
@@ -24,8 +24,6 @@
cmake_policy
(
SET CMP0057 NEW
)
cmake_policy
(
SET CMP0057 NEW
)
include
(
CTest
)
find_package
(
Threads REQUIRED
)
find_package
(
Threads REQUIRED
)
include
(
ProcessorCount
)
include
(
ProcessorCount
)
ProcessorCount
(
N
)
ProcessorCount
(
N
)
...
...
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