Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
X
xxtea-c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
xxtea-c
Commits
213a09e7
Commit
213a09e7
authored
Feb 10, 2016
by
Ma Bingyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update CmakeLists.txt
parent
fdca7830
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
5 deletions
+31
-5
.gitignore
.gitignore
+4
-0
CmakeLists.txt
CmakeLists.txt
+16
-5
CmakeLists.txt
example/CmakeLists.txt
+11
-0
No files found.
.gitignore
View file @
213a09e7
...
@@ -13,3 +13,7 @@ CMakeCache.txt
...
@@ -13,3 +13,7 @@ CMakeCache.txt
Makefile
Makefile
example/main
example/main
install_manifest.txt
*.dylib
CmakeLists.txt
View file @
213a09e7
cmake_minimum_required
(
VERSION 2.6
)
project
(
xxtea
)
SET
(
LIBXXTEA_SRC xxtea.c
)
cmake_minimum_required
(
VERSION 2.8.12
)
ADD_LIBRARY
(
xxtea STATIC
${
LIBXXTEA_SRC
}
)
set
(
CMAKE_MACOSX_RPATH 1
)
INSTALL
(
TARGETS xxtea
set
(
LIBXXTEA_SRC xxtea.c
)
add_library
(
xxtea SHARED
${
LIBXXTEA_SRC
}
)
add_library
(
xxtea_static STATIC
${
LIBXXTEA_SRC
}
)
set_target_properties
(
xxtea_static PROPERTIES OUTPUT_NAME
"xxtea"
)
set_target_properties
(
xxtea PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
set_target_properties
(
xxtea_static PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
set_target_properties
(
xxtea PROPERTIES INSTALL_RPATH
"@loader_path/../lib"
)
set_target_properties
(
xxtea_static PROPERTIES INSTALL_RPATH
"@loader_path/../lib"
)
install
(
TARGETS xxtea
LIBRARY DESTINATION lib
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
ARCHIVE DESTINATION lib
)
INSTALL
(
FILES xxtea.h DESTINATION include
)
install
(
TARGETS xxtea_static
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
install
(
FILES xxtea.h DESTINATION include
)
example/CmakeLists.txt
0 → 100644
View file @
213a09e7
project
(
main
)
cmake_minimum_required
(
VERSION 2.8.12
)
aux_source_directory
(
. DIR_SRCS
)
add_executable
(
main
${
DIR_SRCS
}
)
find_path
(
LIBXXTEA_HEADER xxtea.h
)
include_directories
(
${
LIBXXTEA_HEADER
}
)
find_library
(
LIBXXTEA_LIBRARIES NAMES xxtea
PATHS /usr/lib/ /usr/local/lib/
)
target_link_libraries
(
main
${
LIBXXTEA_LIBRARIES
}
)
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