Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Kate Kader
Open VDS
Commits
9b1c65c1
Commit
9b1c65c1
authored
Sep 30, 2019
by
Jørgen Lind
Browse files
Make openvds producible as a static lib as well
parent
39acbe05
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
9b1c65c1
...
...
@@ -9,10 +9,10 @@ set (TEST_AWS_BUCKET "" CACHE STRING "Test AWS bucket")
set
(
TEST_AWS_OBJECTID
""
CACHE STRING
"Test AWS object ID"
)
option
(
BUILD_PYTHON
"Build python bindings"
ON
)
option
(
ENABLE_OPENMP
"Enable the OpenMP codepath"
ON
)
option
(
BUILD_SHARED_LIBS
"Build OpenVDS as a shared library"
ON
)
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_CXX_EXTENSIONS OFF
)
set
(
CMAKE_POSITION_INDEPENDENT_CODE ON
)
define_property
(
GLOBAL PROPERTY RUNTIME_LIBS_RELEASE BRIEF_DOCS
"Runtime libraries"
FULL_DOCS
"Files that will be copied to test folders"
)
define_property
(
GLOBAL PROPERTY RUNTIME_LIBS_DEBUG BRIEF_DOCS
"Runtime libraries"
FULL_DOCS
"Files that will be copied to test folders"
)
...
...
src/CMakeLists.txt
View file @
9b1c65c1
...
...
@@ -131,7 +131,7 @@ if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set
(
CMAKE_INSTALL_PREFIX
${
PROJECT_SOURCE_DIR
}
/Dist/OpenVDS CACHE STRING
""
FORCE
)
endif
(
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
)
add_library
(
openvds
SHARED
$<TARGET_OBJECTS:openvds_objects>
)
add_library
(
openvds $<TARGET_OBJECTS:openvds_objects>
)
target_link_libraries
(
openvds openvds_objects
)
set_target_properties
(
openvds
PROPERTIES
...
...
tests/CMakeLists.txt
View file @
9b1c65c1
...
...
@@ -4,6 +4,7 @@ include(GoogleTest)
set
(
BUILD_GMOCK OFF CACHE BOOL
"We dont need mock"
FORCE
)
set
(
gtest_force_shared_crt ON CACHE BOOL
""
FORCE
)
set
(
INSTALL_GTEST OFF CACHE BOOL
"Dont install"
FORCE
)
set
(
BUILD_SHARED_LIBS OFF
)
add_subdirectory
(
${
gtest_SOURCE_DIR
}
${
PROJECT_BINARY_DIR
}
/gtest
)
set_target_properties
(
gtest PROPERTIES
FOLDER ExternalProjectTargets/GoogleTest
)
...
...
Write
Preview
Supports
Markdown
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