Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
bctoolbox
Commits
c0d0bbbf
Commit
c0d0bbbf
authored
Feb 12, 2016
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some CMake fixes.
parent
d04ac3ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
CMakeLists.txt
CMakeLists.txt
+2
-8
src/CMakeLists.txt
src/CMakeLists.txt
+1
-0
No files found.
CMakeLists.txt
View file @
c0d0bbbf
...
...
@@ -35,6 +35,7 @@ set(PACKAGE_TARNAME "bctoolbox")
set
(
PACKAGE_URL
""
)
set
(
VERSION
"
${
PACKAGE_VERSION
}
"
)
option
(
ENABLE_STATIC
"Build static library (default is shared library)."
NO
)
option
(
ENABLE_POLARSSL
"Enable polarssl support"
ON
)
option
(
ENABLE_MBEDTLS
"Enable mabedtls support"
ON
)
...
...
@@ -43,10 +44,6 @@ include(CheckSymbolExists)
include
(
CheckCSourceCompiles
)
include
(
CMakePushCheckState
)
set
(
MSVC_INCLUDE_DIR
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/include/MSVC"
)
if
(
MSVC
)
list
(
APPEND CMAKE_REQUIRED_INCLUDES
${
MSVC_INCLUDE_DIR
}
)
endif
()
list
(
APPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
if
(
ENABLE_MBEDTLS
)
...
...
@@ -101,10 +98,6 @@ elseif(ENABLE_POLARSSL AND POLARSSL_FOUND)
include_directories
(
${
POLARSSL_INCLUDE_DIRS
}
)
endif
()
if
(
MSVC
)
include_directories
(
${
MSVC_INCLUDE_DIR
}
)
endif
()
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/config.h.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/config.h
)
set_source_files_properties
(
${
CMAKE_CURRENT_BINARY_DIR
}
/config.h PROPERTIES GENERATED ON
)
add_definitions
(
"-DHAVE_CONFIG_H"
)
...
...
@@ -190,3 +183,4 @@ install(FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/BcToolboxConfigVersion.cmake"
DESTINATION
${
ConfigPackageLocation
}
)
src/CMakeLists.txt
View file @
c0d0bbbf
...
...
@@ -41,6 +41,7 @@ if(ENABLE_STATIC)
else
()
add_library
(
bctoolbox SHARED
${
BCTOOLBOX_HEADER_FILES
}
${
BCTOOLBOX_SOURCE_FILES
}
)
set_target_properties
(
bctoolbox PROPERTIES VERSION 0.0.0 SOVERSION 0
)
set_target_properties
(
bctoolbox PROPERTIES LINKER_LANGUAGE
"CXX"
)
if
(
MSVC
)
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/Debug/bctoolbox.pdb
...
...
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