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
a3d67903
Commit
a3d67903
authored
Oct 05, 2023
by
Artur Wojcik
Browse files
cmake_src
parent
42bdd4e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
src/CMakeLists.txt
src/CMakeLists.txt
+14
-12
No files found.
src/CMakeLists.txt
View file @
a3d67903
...
@@ -246,27 +246,31 @@ rocm_install_targets(
...
@@ -246,27 +246,31 @@ rocm_install_targets(
${
CMAKE_CURRENT_BINARY_DIR
}
/include
${
CMAKE_CURRENT_BINARY_DIR
}
/include
)
)
if
(
NOT WIN32
)
check_cxx_linker_flag
(
-lstdc++fs HAS_LIB_STD_FILESYSTEM
)
check_cxx_linker_flag
(
-lstdc++fs HAS_LIB_STD_FILESYSTEM
)
if
(
HAS_LIB_STD_FILESYSTEM
)
if
(
HAS_LIB_STD_FILESYSTEM
)
target_link_libraries
(
migraphx PRIVATE -lstdc++fs
)
target_link_libraries
(
migraphx PRIVATE -lstdc++fs
)
endif
()
target_link_libraries
(
migraphx PRIVATE -ldl
)
endif
()
endif
()
target_link_libraries
(
migraphx PRIVATE -ldl
)
target_include_directories
(
migraphx SYSTEM PUBLIC $<BUILD_INTERFACE:
${
HALF_INCLUDE_DIR
}
>
)
target_include_directories
(
migraphx SYSTEM PUBLIC $<BUILD_INTERFACE:
${
HALF_INCLUDE_DIR
}
>
)
target_link_libraries
(
migraphx PUBLIC Threads::Threads
)
target_link_libraries
(
migraphx PUBLIC Threads::Threads
)
find_package
(
nlohmann_json 3.8.0 REQUIRED
)
if
(
NOT WIN32
)
find_package
(
nlohmann_json 3.8.0 REQUIRED
)
endif
()
target_link_libraries
(
migraphx PRIVATE nlohmann_json::nlohmann_json
)
target_link_libraries
(
migraphx PRIVATE nlohmann_json::nlohmann_json
)
migraphx_generate_export_header
(
migraphx
)
migraphx_generate_export_header
(
migraphx
)
find_package
(
SQLite3 REQUIRED
)
find_package
(
SQLite3 REQUIRED
)
target_link_libraries
(
migraphx PRIVATE SQLite::SQLite3
)
target_link_libraries
(
migraphx PRIVATE SQLite::SQLite3
)
find_package
(
msgpackc-cxx QUIET
)
if
(
NOT WIN32
)
if
(
NOT msgpackc-cxx_FOUND
)
find_package
(
msgpackc-cxx QUIET
)
if
(
NOT msgpackc-cxx_FOUND
)
find_package
(
msgpack REQUIRED
)
find_package
(
msgpack REQUIRED
)
endif
()
endif
()
endif
()
target_link_libraries
(
migraphx PRIVATE msgpackc-cxx
)
target_link_libraries
(
migraphx PRIVATE msgpackc-cxx
)
# Make this available to the tests
# Make this available to the tests
...
@@ -274,8 +278,6 @@ target_link_libraries(migraphx INTERFACE $<BUILD_INTERFACE:msgpackc-cxx>)
...
@@ -274,8 +278,6 @@ target_link_libraries(migraphx INTERFACE $<BUILD_INTERFACE:msgpackc-cxx>)
add_library
(
migraphx_all_targets INTERFACE
)
add_library
(
migraphx_all_targets INTERFACE
)
set
(
PACKAGE_DEPENDS
)
add_subdirectory
(
api
)
add_subdirectory
(
api
)
add_subdirectory
(
driver
)
add_subdirectory
(
driver
)
add_subdirectory
(
onnx
)
add_subdirectory
(
onnx
)
...
...
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