Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fadecandy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scanlime
Fadecandy
Commits
65f1105b
Unverified
Commit
65f1105b
authored
7 years ago
by
Micah Elizabeth Scott
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #99 from JoakimSoderberg/cmake_fixes
Fix cmake comments
parents
c3568606
9e977ef8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/CMakeLists.txt
+10
-4
10 additions, 4 deletions
server/CMakeLists.txt
with
10 additions
and
4 deletions
server/CMakeLists.txt
+
10
−
4
View file @
65f1105b
...
@@ -15,7 +15,7 @@ option(USE_BUILTIN_LIBUSB "Use the built-in libusb" ON)
...
@@ -15,7 +15,7 @@ option(USE_BUILTIN_LIBUSB "Use the built-in libusb" ON)
option
(
APPEND_PLATFORM
"Append the platform to the executable name"
OFF
)
option
(
APPEND_PLATFORM
"Append the platform to the executable name"
OFF
)
option
(
WITH_INSTALL_TARGETS
"Generate install targets used by make install and CPack for example"
ON
)
option
(
WITH_INSTALL_TARGETS
"Generate install targets used by make install and CPack for example"
ON
)
option
(
WITH_SYSTEMD_SERVICE
"Creates an install target for a SystemD service"
ON
)
option
(
WITH_SYSTEMD_SERVICE
"Creates an install target for a SystemD service"
ON
)
option
(
WITH_SYSTEMD_USER
"Run the SystemD service using a special user. Name of the user can be changed using -DFCSERVER_USER=username"
O
N
)
option
(
WITH_SYSTEMD_USER
"Run the SystemD service using a special user. Name of the user can be changed using -DFCSERVER_USER=username"
O
FF
)
set
(
FCSERVER_USER
"fcserver"
CACHE STRING
"The user that is created after a debian package installation if WITH_SYSTEMD_USER is enabled"
)
set
(
FCSERVER_USER
"fcserver"
CACHE STRING
"The user that is created after a debian package installation if WITH_SYSTEMD_USER is enabled"
)
# TODO: Enable installing init daemon instead
# TODO: Enable installing init daemon instead
...
@@ -156,9 +156,11 @@ include_directories("${PROJECT_SOURCE_DIR}/")
...
@@ -156,9 +156,11 @@ include_directories("${PROJECT_SOURCE_DIR}/")
if
(
USE_BUILTIN_WS
)
if
(
USE_BUILTIN_WS
)
# Turn off unused libwebsockets parts.
# Turn off unused libwebsockets parts.
set
(
WITHOUT_CLIENT ON
)
# TODO: Once libwebsockets version is updated these need to change, newer version uses prefix "LWS_*"
set
(
WITHOUT_EXTENSIONS ON
)
set
(
WITHOUT_CLIENT ON CACHE BOOL
""
)
set
(
WITHOUT_TESTAPPS ON
)
set
(
WITHOUT_EXTENSIONS ON CACHE BOOL
""
)
set
(
WITHOUT_TESTAPPS ON CACHE BOOL
""
)
set
(
WITH_SSL OFF CACHE BOOL
""
)
# Newer versions of CMake will complain since the libwebockets
# Newer versions of CMake will complain since the libwebockets
# version we're using is quite old.
# version we're using is quite old.
...
@@ -272,6 +274,10 @@ if (WITH_INSTALL_TARGETS)
...
@@ -272,6 +274,10 @@ if (WITH_INSTALL_TARGETS)
set
(
SYSTEMD_UNIT_NAME
"
${
PROJECT_BINARY_DIR
}
/
${
EXECUTABLE_NAME
}
.service"
)
set
(
SYSTEMD_UNIT_NAME
"
${
PROJECT_BINARY_DIR
}
/
${
EXECUTABLE_NAME
}
.service"
)
if
(
WITH_SYSTEMD_USER
)
if
(
WITH_SYSTEMD_USER
)
# TODO: Setup proper udev rules for FCSERVER_USER in the postinst.in script
# currently this must be done manually which is quite tedious.
# http://www.reactivated.net/writing_udev_rules.html
# Run as specified user in FCSERVER_USER.
# Run as specified user in FCSERVER_USER.
configure_file
(
"
${
PROJECT_SOURCE_DIR
}
/cmake/fcserver-user.service.in"
configure_file
(
"
${
PROJECT_SOURCE_DIR
}
/cmake/fcserver-user.service.in"
"
${
SYSTEMD_UNIT_NAME
}
"
)
"
${
SYSTEMD_UNIT_NAME
}
"
)
...
...
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