Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
ec3944d9
Commit
ec3944d9
authored
May 28, 2012
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #201 from thecodeshop/rm-cmake-tgt
remove extraneous cmake build targets
parents
dae33d3f
c403458b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
mrblib/CMakeLists.txt
mrblib/CMakeLists.txt
+1
-3
src/CMakeLists.txt
src/CMakeLists.txt
+0
-1
tools/mrbc/CMakeLists.txt
tools/mrbc/CMakeLists.txt
+2
-2
No files found.
mrblib/CMakeLists.txt
View file @
ec3944d9
...
@@ -45,12 +45,10 @@ else()
...
@@ -45,12 +45,10 @@ else()
endif
()
endif
()
add_library
(
mrblib_object OBJECT mrblib.c
)
# generate final static libmruby archive library
# generate final static libmruby archive library
add_library
(
libmruby_static STATIC
add_library
(
libmruby_static STATIC
mrblib.c
$<TARGET_OBJECTS:mruby_object>
$<TARGET_OBJECTS:mruby_object>
$<TARGET_OBJECTS:mrblib_object>
)
)
set_target_properties
(
libmruby_static PROPERTIES OUTPUT_NAME mruby
)
set_target_properties
(
libmruby_static PROPERTIES OUTPUT_NAME mruby
)
...
...
src/CMakeLists.txt
View file @
ec3944d9
...
@@ -7,6 +7,5 @@ file(GLOB MRUBY_SRC_C "*.c")
...
@@ -7,6 +7,5 @@ file(GLOB MRUBY_SRC_C "*.c")
list
(
APPEND MRUBY_SRC_C
"
${
CMAKE_CURRENT_BINARY_DIR
}
/parse.c"
)
list
(
APPEND MRUBY_SRC_C
"
${
CMAKE_CURRENT_BINARY_DIR
}
/parse.c"
)
add_library
(
mruby_object OBJECT
${
MRUBY_SRC_C
}
${
BISON_mruby_OUTPUTS
}
)
add_library
(
mruby_object OBJECT
${
MRUBY_SRC_C
}
${
BISON_mruby_OUTPUTS
}
)
add_library
(
mruby_static STATIC EXCLUDE_FROM_ALL $<TARGET_OBJECTS:mruby_object>
)
# vim: ts=2 sts=2 sw=2 et
# vim: ts=2 sts=2 sw=2 et
tools/mrbc/CMakeLists.txt
View file @
ec3944d9
# build tools/mrbc executable
# build tools/mrbc executable
file
(
GLOB MRBC_SRC_C
"*.c"
)
file
(
GLOB MRBC_SRC_C
"*.c"
)
add_executable
(
mrbc
${
MRBC_SRC_C
}
)
add_executable
(
mrbc
${
MRBC_SRC_C
}
$<TARGET_OBJECTS:mruby_object>
)
target_link_libraries
(
mrbc
mruby_static
${
MRUBY_LIBS
}
)
target_link_libraries
(
mrbc
${
MRUBY_LIBS
}
)
install
(
TARGETS mrbc RUNTIME DESTINATION bin
)
install
(
TARGETS mrbc RUNTIME DESTINATION bin
)
...
...
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