Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Nicolas Pope
ftl
Commits
c8df4fa6
Commit
c8df4fa6
authored
6 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Add missing CMakeLists.txt and improve cmake config for net module
parent
4d412d8c
No related branches found
No related tags found
No related merge requests found
Pipeline
#9611
passed
6 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-3
1 addition, 3 deletions
CMakeLists.txt
net/CMakeLists.txt
+11
-0
11 additions, 0 deletions
net/CMakeLists.txt
net/cpp/CMakeLists.txt
+11
-6
11 additions, 6 deletions
net/cpp/CMakeLists.txt
with
23 additions
and
9 deletions
CMakeLists.txt
+
1
−
3
View file @
c8df4fa6
...
...
@@ -6,6 +6,7 @@ include(CheckLanguage)
project
(
ftl.utu.fi
)
include
(
GNUInstallDirs
)
include
(
CTest
)
enable_testing
()
...
...
@@ -33,9 +34,6 @@ if (NODE_NPM)
message
(
STATUS
"Found NPM:
${
NODE_NPM
}
"
)
endif
()
include_directories
(
${
GLOG_INCLUDE_DIRS
}
)
# Why is this problematic on some machines?
check_language
(
CUDA
)
if
(
CUDA_TOOLKIT_ROOT_DIR
)
enable_language
(
CUDA
)
...
...
This diff is collapsed.
Click to expand it.
net/CMakeLists.txt
0 → 100644
+
11
−
0
View file @
c8df4fa6
add_subdirectory
(
cpp
)
# Perform Javascript module tests
if
(
NODE_NPM
)
add_test
(
NAME NetJSTests
COMMAND npm test
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/net/js
)
endif
()
This diff is collapsed.
Click to expand it.
net/cpp/CMakeLists.txt
+
11
−
6
View file @
c8df4fa6
...
...
@@ -3,7 +3,7 @@ include_directories(${PROJECT_SOURCE_DIR}/net/cpp/include)
#include_directories(${PROJECT_BINARY_DIR})
set
(
NETSOURCE
add_library
(
ftlnet
src/net.cpp
src/listener.cpp
src/socket.cpp
...
...
@@ -13,15 +13,20 @@ set(NETSOURCE
src/p2p.cpp
)
#check_include_file("uriparser/Uri.h" HAVE_URI_H)
#if(NOT HAVE_URI_H)
# message(FATAL_ERROR "Uriparser not found")
#endif()
check_function_exists
(
uriParseSingleUriA HAVE_URIPARSESINGLE
)
add_library
(
ftlnet
${
NETSOURCE
}
)
target_include_directories
(
ftlnet PUBLIC
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/include>
$<INSTALL_INTERFACE:include>
PRIVATE src
)
target_link_libraries
(
ftlnet Threads::Threads glog::glog
)
install
(
TARGETS ftlnet EXPORT ftlnet-config
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
install
(
DIRECTORY include/ DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
)
add_executable
(
net-cli src/main.cpp
)
target_link_libraries
(
net-cli ftlnet glog::glog
${
URIPARSER_LIBRARIES
}
Threads::Threads
${
READLINE_LIBRARY
}
${
UUID_LIBRARIES
}
)
add_dependencies
(
net-cli ftlnet
)
...
...
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