Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wasm-watermarker
Project
Project
Details
Activity
Releases
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
nagayama15
wasm-watermarker
Commits
bf248ea9
Commit
bf248ea9
authored
Mar 15, 2019
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix link error
parent
d7efd018
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
CMakeLists.txt
CMakeLists.txt
+2
-0
binaryen.cmake
cmake/binaryen.cmake
+10
-8
No files found.
CMakeLists.txt
View file @
bf248ea9
...
@@ -12,6 +12,8 @@ if (NOT CMAKE_BUILD_TYPE)
...
@@ -12,6 +12,8 @@ if (NOT CMAKE_BUILD_TYPE)
set
(
CMAKE_BUILD_TYPE Release
)
set
(
CMAKE_BUILD_TYPE Release
)
endif
(
NOT CMAKE_BUILD_TYPE
)
endif
(
NOT CMAKE_BUILD_TYPE
)
find_package
(
Threads REQUIRED
)
include
(
ExternalProject
)
include
(
ExternalProject
)
include
(
cmake/binaryen.cmake
)
include
(
cmake/binaryen.cmake
)
include
(
cmake/fmt.cmake
)
include
(
cmake/fmt.cmake
)
...
...
cmake/binaryen.cmake
View file @
bf248ea9
...
@@ -17,14 +17,7 @@ file(MAKE_DIRECTORY ${source_dir}/src)
...
@@ -17,14 +17,7 @@ file(MAKE_DIRECTORY ${source_dir}/src)
add_library
(
binaryen::binaryen STATIC IMPORTED
)
add_library
(
binaryen::binaryen STATIC IMPORTED
)
add_dependencies
(
binaryen::binaryen binaryen
)
add_dependencies
(
binaryen::binaryen binaryen
)
set_target_properties
(
binaryen::binaryen
set
(
binaryen_LIBS
PROPERTIES
IMPORTED_LOCATION
${
binary_dir
}
/lib/libpasses.a
INTERFACE_INCLUDE_DIRECTORIES
${
source_dir
}
/src
INTERFACE_LINK_LIBRARIES
"
${
binaryen_other_libraries
}
"
)
target_link_libraries
(
binaryen::binaryen INTERFACE
${
binary_dir
}
/lib/libwasm.a
${
binary_dir
}
/lib/libwasm.a
${
binary_dir
}
/lib/libasmjs.a
${
binary_dir
}
/lib/libasmjs.a
${
binary_dir
}
/lib/libpasses.a
${
binary_dir
}
/lib/libpasses.a
...
@@ -32,4 +25,13 @@ target_link_libraries(binaryen::binaryen INTERFACE
...
@@ -32,4 +25,13 @@ target_link_libraries(binaryen::binaryen INTERFACE
${
binary_dir
}
/lib/libir.a
${
binary_dir
}
/lib/libir.a
${
binary_dir
}
/lib/libemscripten-optimizer.a
${
binary_dir
}
/lib/libemscripten-optimizer.a
${
binary_dir
}
/lib/libsupport.a
${
binary_dir
}
/lib/libsupport.a
${
binary_dir
}
/lib/libwasm.a
Threads::Threads
)
set_target_properties
(
binaryen::binaryen
PROPERTIES
IMPORTED_LOCATION
${
binary_dir
}
/lib/libpasses.a
INTERFACE_INCLUDE_DIRECTORIES
${
source_dir
}
/src
INTERFACE_LINK_LIBRARIES
"
${
binaryen_LIBS
}
"
)
)
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