Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
python-cellframe
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
1
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
cellframe
python-cellframe
Commits
52c4ba3f
Commit
52c4ba3f
authored
5 years ago
by
alexey.stratulat
Browse files
Options
Downloads
Patches
Plain Diff
[+] Added cmake file
parent
13bf8d33
No related branches found
No related tags found
1 merge request
!26
Support 3689
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+90
-0
90 additions, 0 deletions
CMakeLists.txt
with
90 additions
and
0 deletions
CMakeLists.txt
0 → 100644
+
90
−
0
View file @
52c4ba3f
project
(
dap_client_python_module C
)
cmake_minimum_required
(
VERSION 2.8
)
set
(
CMAKE_VERBOSE_MAKEFILE ON
)
set
(
CMAKE_COLOR_MAKEFILE ON
)
set
(
CMAKE_C_STANDARD 11
)
add_definitions
(
"-fpic"
)
add_definitions
(
"-DDAP_LOG_MT"
)
add_definitions
(
"-DNODE_NETNAME=
\"
cellframe
\"
"
)
if
(
UNIX
)
add_definitions
(
"-DDAP_OS_UNIX"
)
endif
()
if
(
NOT
(
${
SUBMODULES_NO_BUILD
}
MATCHES ON
))
set
(
SUBMODULES_NO_BUILD ON
)
if
(
NOT
(
TARGET dap_core
))
add_subdirectory
(
libdap
)
target_compile_options
(
dap_core PRIVATE
"-fpic"
)
endif
()
if
(
NOT
(
TARGET dap_crypto
))
add_subdirectory
(
libdap-crypto
)
target_compile_options
(
dap_crypto PRIVATE
"-fpic"
)
endif
()
if
(
NOT
(
TARGET dap_server_core
))
add_subdirectory
(
libdap-server-core
)
target_compile_options
(
dap_server_core PRIVATE
"-fpic"
)
endif
()
if
(
NOT
(
TARGET libdap-server
))
add_subdirectory
(
libdap-server
)
# target_compile_options(
# libdap-server PRIVATE
# "-fpic"
# )
endif
()
if
(
NOT
(
TARGET dap_stream
))
add_subdirectory
(
libdap-stream
)
target_compile_options
(
dap_stream PRIVATE
"-fpic"
)
endif
()
if
(
NOT
(
TARGET dap_stream_ch
))
add_subdirectory
(
libdap-stream-ch
)
target_compile_options
(
dap_stream_ch PRIVATE
"-fpic"
)
endif
()
if
(
NOT
(
TARGET dap_udp_server
))
add_subdirectory
(
libdap-server-udp
)
target_compile_options
(
dap_udp_server PRIVATE
"-fpic"
)
endif
()
if
(
NOT
(
TARGET dap_client
))
add_subdirectory
(
libdap-client
)
target_compile_options
(
dap_client PRIVATE
"-fpic"
)
endif
()
endif
()
#add_definitions("-DDAP_APP_NAME=\"TestPRJ\" -DSYSTEM_CONFIGS_DIR=\"${CMAKE_CURRENT_BINARY_DIR}\"")
file
(
GLOB CLIENT_PYTHON_SRCS src/*.c
)
file
(
GLOB CLIENT_PYTHON_HEADERS include/*.h
)
set
(
Python_ADDITIONAL_VERSIONS 3.7
)
find_package
(
PythonLibs REQUIRED
)
include_directories
(
${
PYTHON_INCLUDE_DIR
}
include/
)
add_library
(
${
PROJECT_NAME
}
STATIC
${
CLIENT_PYTHON_SRCS
}
${
CLIENT_PYTHON_HEADERS
}
)
target_link_libraries
(
${
PROJECT_NAME
}
)
target_link_libraries
(
${
PROJECT_NAME
}
dap_core dap_crypto dap_client
)
target_include_directories
(
${
PROJECT_NAME
}
PUBLIC include/
)
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