Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
CTA-LAPP
PHOENIX_LIBS
PhoenixHPCProxy
Commits
6eec271e
Commit
6eec271e
authored
May 20, 2021
by
Pierre Aubert
Browse files
Add dedicated function to add library with system link for program version
parent
b94cfbd1
Pipeline
#120007
passed with stages
in 10 minutes and 12 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
3 deletions
+21
-3
cmake/CMakeLists.txt
cmake/CMakeLists.txt
+1
-0
cmake/phoenix_add_library.cmake
cmake/phoenix_add_library.cmake
+17
-0
src/BackEnd/CMakeLists.txt
src/BackEnd/CMakeLists.txt
+1
-1
src/FrontEnd/CMakeLists.txt
src/FrontEnd/CMakeLists.txt
+1
-1
src/Representation/CMakeLists.txt
src/Representation/CMakeLists.txt
+1
-1
No files found.
cmake/CMakeLists.txt
View file @
6eec271e
...
...
@@ -8,6 +8,7 @@ if(NOT MODULE_MODE)
include
(
create_doc.cmake
)
include
(
environnement_prefix.cmake
)
include
(
create_find_project.cmake
)
include
(
phoenix_add_library.cmake
)
endif
()
...
...
cmake/phoenix_add_library.cmake
0 → 100644
View file @
6eec271e
# Add Shared library with suffix by respect to the program version set with the phoenix_base_project function
# targetName : name of the library target to be created
# ARGN : list of dependencies
function
(
phoenix_add_library targetName
)
add_library
(
${
targetName
}
SHARED
${
ARGN
}
)
string
(
REPLACE
"."
";"
PROGRAM_VERSION_LIST
${
PROGRAM_VERSION
}
)
list
(
GET PROGRAM_VERSION_LIST 0 PROGRAM_VERSION_SO
)
set_target_properties
(
${
targetName
}
PROPERTIES
VERSION
"
${
PROGRAM_VERSION
}
"
SOVERSION
"
${
PROGRAM_VERSION_SO
}
"
)
endfunction
(
phoenix_add_library
)
src/BackEnd/CMakeLists.txt
View file @
6eec271e
file
(
GLOB listSrc
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/*.cpp"
)
add_library
(
phoenix_hpc_proxy_backend
SHARED
${
listSrc
}
)
phoenix_
add_library
(
phoenix_hpc_proxy_backend
${
listSrc
}
)
target_link_libraries
(
phoenix_hpc_proxy_backend phoenix_hpc_proxy_representation
${
LIB_DEPENDENCIES
}
)
install
(
TARGETS phoenix_hpc_proxy_backend DESTINATION
${
LIBRARY_DIRECTORY
}
LIBRARY DESTINATION
${
LIBRARY_DIRECTORY
}
)
...
...
src/FrontEnd/CMakeLists.txt
View file @
6eec271e
file
(
GLOB listSrc
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/*.cpp"
)
add_library
(
phoenix_hpc_proxy_frontend
SHARED
${
listSrc
}
)
phoenix_
add_library
(
phoenix_hpc_proxy_frontend
${
listSrc
}
)
target_link_libraries
(
phoenix_hpc_proxy_frontend phoenix_hpc_proxy_representation
${
LIB_DEPENDENCIES
}
)
install
(
TARGETS phoenix_hpc_proxy_frontend DESTINATION
${
LIBRARY_DIRECTORY
}
LIBRARY DESTINATION
${
LIBRARY_DIRECTORY
}
)
...
...
src/Representation/CMakeLists.txt
View file @
6eec271e
...
...
@@ -4,7 +4,7 @@
file
(
GLOB listSrc
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/*.cpp"
)
add_library
(
phoenix_hpc_proxy_representation
SHARED
${
listSrc
}
)
phoenix_
add_library
(
phoenix_hpc_proxy_representation
${
listSrc
}
)
target_link_libraries
(
phoenix_hpc_proxy_representation
${
LIB_DEPENDENCIES
}
)
install
(
TARGETS phoenix_hpc_proxy_representation DESTINATION
${
LIBRARY_DIRECTORY
}
LIBRARY DESTINATION
${
LIBRARY_DIRECTORY
}
)
...
...
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