Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
dynamic-graph
Commits
92ee5ee9
Commit
92ee5ee9
authored
Feb 03, 2020
by
Florent Lamiraux
Committed by
Florent Lamiraux florent@laas.fr
Feb 04, 2020
Browse files
Add Cmake option to deactivate suffix of so files.
Force tests to link with the library in build directory.
parent
70864112
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
92ee5ee9
...
...
@@ -170,7 +170,13 @@ target_include_directories(${PROJECT_NAME}
$<INSTALL_INTERFACE:include>
)
SET_TARGET_PROPERTIES
(
${
PROJECT_NAME
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
OPTION
(
SUFFIX_SO_VERSION
"Suffix shared library name by a string depending on git status of project"
ON
)
IF
(
${
SUFFIX_SO_VERSION
}
EQUAL
"ON"
)
SET_TARGET_PROPERTIES
(
${
PROJECT_NAME
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
ENDIF
()
IF
(
UNIX
)
TARGET_LINK_LIBRARIES
(
${
PROJECT_NAME
}
${
CMAKE_DL_LIBS
}
pthread
)
...
...
tests/CMakeLists.txt
View file @
92ee5ee9
...
...
@@ -2,6 +2,7 @@
#
ADD_DEFINITIONS
(
-DDEBUG=2
)
SET
(
CMAKE_EXE_LINKER_FLAGS
${
CMAKE_EXE_LINKER_FLAGS
}
-Wl,--disable-new-dtags
)
# Add Boost path to include directories.
#INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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