Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
0fbbb703
Commit
0fbbb703
authored
11 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Adding a CMake List
parent
8df09259
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/smblib/CMakeLists.txt
+54
-0
54 additions, 0 deletions
src/smblib/CMakeLists.txt
with
54 additions
and
0 deletions
src/smblib/CMakeLists.txt
0 → 100644
+
54
−
0
View file @
0fbbb703
project
(
SMBLib C
)
cmake_minimum_required
(
VERSION 2.8.11
)
set
(
SOURCE
smbadd.c
smballoc.c
smbdump.c
smbfile.c
smbhash.c
smblib.c
smbstr.c
smbtxt.c
crc16.c
crc32.c
md5.c
lzh.c
)
add_library
(
smblib SHARED
${
SOURCE
}
)
if
(
"
${
CMAKE_SOURCE_DIR
}
"
STREQUAL
"
${
CMAKE_CURRENT_LIST_DIR
}
"
)
add_subdirectory
(
../xpdev xpdev
)
ENDIF
()
add_dependencies
(
smblib xpdev
)
target_include_directories
(
smblib PRIVATE ../xpdev
)
target_compile_definitions
(
smblib PUBLIC $<TARGET_PROPERTY:xpdev,INTERFACE_COMPILE_DEFINITIONS>
)
target_include_directories
(
smblib PUBLIC $<TARGET_PROPERTY:xpdev,INTERFACE_INCLUDE_DIRECTORIES>
)
target_link_libraries
(
smblib xpdev
)
target_compile_definitions
(
smblib PRIVATE SMB_EXPORTS
)
target_compile_definitions
(
smblib INTERFACE SMB_IMPORTS
)
target_compile_definitions
(
smblib PRIVATE MD5_EXPORTS
)
target_compile_definitions
(
smblib INTERFACE MD5_IMPORTS
)
target_compile_definitions
(
smblib PRIVATE LZH_EXPORTS
)
target_compile_definitions
(
smblib INTERFACE LZH_IMPORTS
)
target_link_libraries
(
smblib
${
CMAKE_DL_LIBS
}
)
set
(
INSTALL_HEADERS
smbdefs.h
smblib.h
)
set
(
INSTALL_HEADERS_SUBDIR
lzh.h
md5.h
)
export
(
PACKAGE SMBLib
)
install
(
TARGETS smblib DESTINATION lib EXPORT SMBLibConfig
)
install
(
FILES
${
INSTALL_HEADERS
}
DESTINATION include
)
install
(
FILES
${
INSTALL_HEADERS_SUBDIR
}
DESTINATION include/smblib
)
install
(
EXPORT SMBLibConfig DESTINATION lib/cmake/CIOLib
)
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