Skip to content

Commit

Permalink
Merge branch 'convertToObjectLibrary' into githubaction_convertToObje…
Browse files Browse the repository at this point in the history
…ctLibrary
  • Loading branch information
Taiju Yamada committed Apr 30, 2024
2 parents 9e986d7 + 7aca61e commit 8be0192
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cmake_minimum_required (VERSION 2.8.0)
cmake_minimum_required (VERSION 2.8.8)
project(mujincontrollerclient)
set( CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE )

Expand Down
6 changes: 4 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ if (libzmq_FOUND)
set(SOURCE_FILES ${SOURCE_FILES} binpickingtaskzmq.h binpickingtaskzmq.cpp mujinzmq.cpp)
endif()

add_library(libmujincontrollerclient SHARED ${SOURCE_FILES})
add_library(libmujincontrollerclientbase OBJECT ${SOURCE_FILES})

add_library(libmujincontrollerclient SHARED $<TARGET_OBJECTS:libmujincontrollerclientbase>)
if( EXTRA_MSVC_DEPEND )
message(STATUS "adding msvc_boost dependency")
add_dependencies(libmujincontrollerclient ${EXTRA_MSVC_DEPEND})
Expand Down Expand Up @@ -63,7 +65,7 @@ if( OPT_BUILD_STATIC )
set(LIBMUJINCONTROLLERCLIENT_NAME mujincontrollerclient${MUJINCLIENT_LIBRARY_SUFFIX})
endif()

add_library(libmujincontrollerclient_static STATIC ${SOURCE_FILES})
add_library(libmujincontrollerclient_static STATIC $<TARGET_OBJECTS:libmujincontrollerclientbase>)
set_target_properties(libmujincontrollerclient_static PROPERTIES OUTPUT_NAME ${LIBMUJINCONTROLLERCLIENT_NAME}
SOVERSION 0 # always have it 0 since we're including the soversion as part of the library name
VERSION ${MUJINCLIENT_VERSION}
Expand Down

0 comments on commit 8be0192

Please sign in to comment.