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
d8fdb96c
Commit
d8fdb96c
authored
Mar 13, 2019
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CMake settings for Linux target
parent
fb16aa7c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
binaryen.cmake
cmake/binaryen.cmake
+6
-2
CMakeLists.txt
src/CMakeLists.txt
+7
-5
No files found.
cmake/binaryen.cmake
View file @
d8fdb96c
...
...
@@ -17,11 +17,15 @@ file(MAKE_DIRECTORY ${source_dir}/src)
add_library
(
libbinaryen SHARED IMPORTED
)
add_dependencies
(
libbinaryen binaryen
)
set
(
binaryen_SHARED_LIB
${
binary_dir
}
/bin/libbinaryen
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
)
if
(
WIN32
)
set
(
binaryen_SHARED_LIB
${
binary_dir
}
/bin/libbinaryen
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
)
else
()
set
(
binaryen_SHARED_LIB
${
binary_dir
}
/lib/libbinaryen
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
)
endif
()
set_target_properties
(
libbinaryen
PROPERTIES
IMPORTED_LOCATION
${
binaryen_SHARED_LIB
}
IMPORTED_IMPLIB
${
binary_dir
}
/lib/libbinaryen
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
.a
IMPORTED_IMPLIB
${
binary_dir
}
/lib/libbinaryen
.dll
.a
INTERFACE_INCLUDE_DIRECTORIES
${
source_dir
}
/src
)
src/CMakeLists.txt
View file @
d8fdb96c
...
...
@@ -6,8 +6,10 @@ target_link_libraries(kyut
libbinaryen
)
add_custom_command
(
TARGET kyut POST_BUILD
if
(
WIN32
)
add_custom_command
(
TARGET kyut POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E copy_if_different
${
binaryen_SHARED_LIB
}
${
CMAKE_CURRENT_BINARY_DIR
}
)
)
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