Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loadbalancing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SLMS
loadbalancing
Commits
1831bd07
Commit
1831bd07
authored
4 years ago
by
Stephan Schulz
Browse files
Options
Downloads
Patches
Plain Diff
export library targets
parent
fb92d4ac
No related branches found
No related tags found
1 merge request
!15
CMake projectconfig
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+10
-0
10 additions, 0 deletions
CMakeLists.txt
src/CMakeLists.txt
+41
-28
41 additions, 28 deletions
src/CMakeLists.txt
with
51 additions
and
28 deletions
CMakeLists.txt
+
10
−
0
View file @
1831bd07
...
...
@@ -117,4 +117,14 @@ if(CM_ALL_AUTO_DOC)
add_subdirectory
(
"docs"
)
endif
(
CM_ALL_AUTO_DOC
)
# ProjectConfig
install
(
EXPORT ALLTargets
NAMESPACE ALL::
FILE ALLTargets.cmake
DESTINATION lib/cmake/ALL
)
#export(PACKAGE ALL)
# vim: sw=4 ts=4 et
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
41
−
28
View file @
1831bd07
set
(
ALL_INCLUDE_DIR
${
CMAKE_SOURCE_DIR
}
/include
)
set
(
ALL_HEADER_FILES
${
ALL_INCLUDE_DIR
}
/ALL.hpp
set
(
ALL_HEADER_FILES
${
ALL_INCLUDE_DIR
}
/ALL.hpp
${
ALL_INCLUDE_DIR
}
/ALL_LB.hpp
${
ALL_INCLUDE_DIR
}
/ALL_Functions.hpp
${
ALL_INCLUDE_DIR
}
/ALL_Histogram.hpp
...
...
@@ -10,6 +11,8 @@ set(ALL_HEADER_FILES ${ALL_INCLUDE_DIR}/ALL.hpp
${
ALL_INCLUDE_DIR
}
/ALL_Point.hpp
${
ALL_INCLUDE_DIR
}
/ALL_CustomExceptions.hpp
)
# todo(s.schulz): Should these be installed explicitly?
# install(FILES ${ALL_HEADER_FILES} DESTINATION include)
add_library
(
ALL ALL.cpp ALL_fortran.cpp
${
ALL_HEADER_FILES
}
)
...
...
@@ -23,10 +26,14 @@ if(CM_ALL_VORONOI)
endif
(
CM_ALL_VORONOI
)
target_include_directories
(
ALL PUBLIC
${
MPI_CXX_INCLUDE_PATH
}
)
target_include_directories
(
ALL PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
${
ALL_INCLUDE_DIR
}
)
target_include_directories
(
ALL
PUBLIC
"$<BUILD_INTERFACE:
${
ALL_INCLUDE_DIR
}
>"
"$<INSTALL_INTERFACE:include>"
)
target_link_libraries
(
ALL PUBLIC
${
MPI_CXX_LINK_FLAGS
}
${
MPI_CXX_LIBRARIES
}
)
install
(
TARGETS ALL
EXPORT ALLTargets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
...
...
@@ -41,8 +48,8 @@ if (CM_ALL_FORTRAN)
set_property
(
TARGET ALL_fortran PROPERTY LINKER_LANGUAGE Fortran
)
if
(
CM_ALL_VTK_OUTPUT
)
target_include_directories
(
ALL_fortran P
UBLIC
${
VTK_INCLUDE_DIRS
}
)
target_link_libraries
(
ALL_fortran P
UBLIC
${
VTK_LIBRARIES
}
)
target_include_directories
(
ALL_fortran P
RIVATE
${
VTK_INCLUDE_DIRS
}
)
target_link_libraries
(
ALL_fortran P
RIVATE
${
VTK_LIBRARIES
}
)
endif
(
CM_ALL_VTK_OUTPUT
)
#if(CM_ALL_VORONOI)
# target_include_directories(ALL_fortran PUBLIC ${CM_ALL_VORO_INC})
...
...
@@ -50,10 +57,15 @@ if (CM_ALL_FORTRAN)
#endif(CM_ALL_VORONOI)
target_include_directories
(
ALL_fortran PUBLIC
${
MPI_Fortran_INCLUDE_PATH
}
)
target_include_directories
(
ALL_fortran PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
${
ALL_INCLUDE_DIR
}
)
target_include_directories
(
ALL_fortran
PUBLIC
"$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
>"
"$<INSTALL_INTERFACE:src>"
)
target_include_directories
(
ALL_fortran PRIVATE
${
ALL_INCLUDE_DIR
}
)
target_link_libraries
(
ALL_fortran PUBLIC
${
MPI_Fortran_LINK_FLAGS
}
${
MPI_Fortran_LIBRARIES
}
ALL
)
install
(
TARGETS ALL_fortran
EXPORT ALLTargets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
...
...
@@ -74,3 +86,4 @@ install(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
AMALGAMATED_FILENAME
}
TYPE INCLUDE
)
# vim: sw=4 ts=4 et
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment