Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
ca30c581
Commit
ca30c581
authored
Jun 22, 2011
by
Sebastian Eichelbaum
Browse files
[ADD] - cmake now utilizes SOVERSION correctly.
parent
5ff203d0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
8 deletions
+30
-8
src/CMakeLists.txt
src/CMakeLists.txt
+6
-2
src/ext/biosig/CMakeLists.txt
src/ext/biosig/CMakeLists.txt
+4
-1
src/ext/biosigWin/CMakeLists.txt
src/ext/biosigWin/CMakeLists.txt
+4
-1
src/ext/libeep/CMakeLists.txt
src/ext/libeep/CMakeLists.txt
+4
-1
src/ext/nifti/CMakeLists.txt
src/ext/nifti/CMakeLists.txt
+8
-2
tools/cmake/BuildModuleUtils.cmake
tools/cmake/BuildModuleUtils.cmake
+4
-1
No files found.
src/CMakeLists.txt
View file @
ca30c581
...
...
@@ -175,12 +175,16 @@ INCLUDE_DIRECTORIES( ${OW_VERSION_HEADER_DIRECTORY} )
SETUP_VERSION_HEADER
(
${
OW_VERSION_HEADER
}
)
# Set the OW version string. This can be used by others for setting target versions during compilation.
GET_VERSION_STRING
(
dummy OW_VERSION
"
0
.0.0 "
)
GET_VERSION_STRING
(
dummy OW_VERSION
"
1
.0.0 "
)
IF
(
NOT DEFINED OW_VERSION
)
# CMake does not like unset variables for target properties.
SET
(
OW_VERSION
"
0
.0.0"
)
SET
(
OW_VERSION
"
1
.0.0"
)
ENDIF
()
# We need a SOVERSION too. This somehow describes the API compatibility. We use the major number here.
SPLIT_VERSION_STRING
(
${
OW_VERSION
}
OW_VERSION_MAJOR OW_VERSION_MINOR OW_VERSION_PATCH
)
SET
(
OW_SOVERSION
${
OW_VERSION_MAJOR
}
)
# ---------------------------------------------------------------------------------------------------------------------------------------------------
#
# REQUIRED third party libs
...
...
src/ext/biosig/CMakeLists.txt
View file @
ca30c581
...
...
@@ -19,7 +19,10 @@ IF( CMAKE_HOST_SYSTEM MATCHES Windows )
ENDIF
()
# Set the version of the library.
SET_TARGET_PROPERTIES
(
${
OWExtBioSigName
}
PROPERTIES VERSION
${
OW_VERSION
}
)
SET_TARGET_PROPERTIES
(
${
OWExtBioSigName
}
PROPERTIES
VERSION
${
OW_VERSION
}
SOVERSION
${
OW_SOVERSION
}
)
# install target
INSTALL
(
TARGETS
${
OWExtBioSigName
}
...
...
src/ext/biosigWin/CMakeLists.txt
View file @
ca30c581
...
...
@@ -19,7 +19,10 @@ IF( CMAKE_HOST_SYSTEM MATCHES Windows )
ENDIF
()
# Set the version of the library.
SET_TARGET_PROPERTIES
(
${
OWExtBioSigName
}
PROPERTIES VERSION
${
OW_VERSION
}
)
SET_TARGET_PROPERTIES
(
${
OWExtBioSigName
}
PROPERTIES
VERSION
${
OW_VERSION
}
SOVERSION
${
OW_SOVERSION
}
)
# install target
INSTALL
(
TARGETS
${
OWExtBioSigName
}
...
...
src/ext/libeep/CMakeLists.txt
View file @
ca30c581
...
...
@@ -22,7 +22,10 @@ IF(MSVC_IDE)
ENDIF
(
MSVC_IDE
)
# Set the version of the library.
SET_TARGET_PROPERTIES
(
${
OWExtEEPName
}
PROPERTIES VERSION
${
OW_VERSION
}
)
SET_TARGET_PROPERTIES
(
${
OWExtEEPName
}
PROPERTIES
VERSION
${
OW_VERSION
}
SOVERSION
${
OW_SOVERSION
}
)
# install target
INSTALL
(
TARGETS
${
OWExtEEPName
}
...
...
src/ext/nifti/CMakeLists.txt
View file @
ca30c581
...
...
@@ -50,9 +50,15 @@ IF(UNIX)
ENDIF
(
UNIX
)
# Set the version of the library.
SET_TARGET_PROPERTIES
(
${
NIFTI_ZNZLIB_NAME
}
PROPERTIES VERSION
${
OW_VERSION
}
)
SET_TARGET_PROPERTIES
(
${
NIFTI_ZNZLIB_NAME
}
PROPERTIES
VERSION
${
OW_VERSION
}
SOVERSION
${
OW_SOVERSION
}
)
# Set the version of the library.
SET_TARGET_PROPERTIES
(
${
NIFTI_NIFTILIB_NAME
}
PROPERTIES VERSION
${
OW_VERSION
}
)
SET_TARGET_PROPERTIES
(
${
NIFTI_NIFTILIB_NAME
}
PROPERTIES
VERSION
${
OW_VERSION
}
SOVERSION
${
OW_SOVERSION
}
)
# install target
INSTALL
(
TARGETS
${
NIFTI_NIFTILIB_NAME
}
${
NIFTI_ZNZLIB_NAME
}
...
...
tools/cmake/BuildModuleUtils.cmake
View file @
ca30c581
...
...
@@ -84,7 +84,10 @@ FUNCTION( SETUP_MODULE _MODULE_NAME _MODULE_SOURCE_DIR _MODULE_DEPENDENCIES _MOD
TARGET_LINK_LIBRARIES
(
${
MODULE_NAME
}
${
OWCoreName
}
${
Boost_LIBRARIES
}
${
OPENGL_gl_LIBRARY
}
${
OPENSCENEGRAPH_LIBRARIES
}
${
_MODULE_DEPENDENCIES
}
)
# Set the version of the library.
SET_TARGET_PROPERTIES
(
${
MODULE_NAME
}
PROPERTIES VERSION
${
OW_VERSION
}
)
SET_TARGET_PROPERTIES
(
${
MODULE_NAME
}
PROPERTIES
VERSION
${
OW_VERSION
}
SOVERSION
${
OW_SOVERSION
}
)
# Do not forget the install targets
# NOTE: do we really need to set all permissions explicitely?
...
...
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