Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bctoolbox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
bctoolbox
Commits
6738d5fe
Commit
6738d5fe
authored
Apr 15, 2016
by
Gautier Pelloux-Prayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMakeLists.txt: split ENABLE_TESTS in two options (needed on iOS / android)
parent
b3a628c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
CMakeLists.txt
CMakeLists.txt
+7
-6
No files found.
CMakeLists.txt
View file @
6738d5fe
...
...
@@ -37,12 +37,13 @@ set(PROJECT_VERSION_MINOR ${BCTOOLBOX_VERSION_MINOR})
set
(
PROJECT_VERSION_PATCH
${
BCTOOLBOX_VERSION_PATCH
}
)
set
(
PROJECT_VERSION
"
${
BCTOOLBOX_VERSION
}
"
)
option
(
ENABLE_SHARED
"Build shared library."
YES
)
option
(
ENABLE_STATIC
"Build static library."
YES
)
option
(
ENABLE_SHARED
"Build shared library."
ON
)
option
(
ENABLE_STATIC
"Build static library."
ON
)
option
(
ENABLE_POLARSSL
"Enable polarssl support"
ON
)
option
(
ENABLE_MBEDTLS
"Enable mabedtls support"
ON
)
option
(
ENABLE_TESTS
"Enable compilation of tests helper library"
ON
)
option
(
ENABLE_STRICT
"Pass strict flags to the compiler"
ON
)
option
(
ENABLE_TESTS_COMPONENT
"Enable compilation of tests helper library"
ON
)
option
(
ENABLE_TESTS
"Enable compilation of tests"
ON
)
include
(
CheckLibraryExists
)
include
(
CheckSymbolExists
)
...
...
@@ -110,7 +111,7 @@ if(POLARSSL_FOUND)
set
(
LIBS_PRIVATE
"
${
LIBS_PRIVATE
}
-L
${
polarssl_library_path
}
-lpolarssl"
)
endif
()
if
(
ENABLE_TESTS
)
if
(
ENABLE_TESTS
_COMPONENT
)
find_package
(
CUnit
)
if
(
CUNIT_FOUND
)
cmake_push_check_state
(
RESET
)
...
...
@@ -130,7 +131,7 @@ endif()
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/bctoolbox.pc.in
${
CMAKE_CURRENT_BINARY_DIR
}
/bctoolbox.pc
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/bctoolbox.pc DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig
)
if
(
ENABLE_TESTS AND CUNIT_FOUND
)
if
(
ENABLE_TESTS
_COMPONENT
AND CUNIT_FOUND
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/bctoolbox-tester.pc.in
${
CMAKE_CURRENT_BINARY_DIR
}
/bctoolbox-tester.pc
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/bctoolbox-tester.pc DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig
)
endif
()
...
...
@@ -200,7 +201,7 @@ check_library_exists("rt" "clock_gettime" "" HAVE_LIBRT)
add_subdirectory
(
include
)
add_subdirectory
(
src
)
if
(
ENABLE_TESTS AND CUNIT_FOUND
)
if
(
ENABLE_TESTS AND
ENABLE_TESTS_COMPONENT AND
CUNIT_FOUND
)
add_subdirectory
(
tester
)
endif
()
...
...
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