Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
e6fbc72e
Commit
e6fbc72e
authored
Feb 01, 2017
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set executable name to linphone instead of linphone-qt.
parent
8a57b2b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
CMakeLists.txt
linphone-desktop/CMakeLists.txt
+11
-9
No files found.
linphone-desktop/CMakeLists.txt
View file @
e6fbc72e
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
cmake_minimum_required
(
VERSION 3.1
)
cmake_minimum_required
(
VERSION 3.1
)
project
(
linphoneqt
)
project
(
linphoneqt
)
set
(
LINPHONE_EXEC linphone-qt
)
set
(
EXECUTABLE_NAME linphone
)
set
(
TARGET_NAME linphone-qt
)
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_CXX_STANDARD 11
)
include
(
GNUInstallDirs
)
include
(
GNUInstallDirs
)
...
@@ -194,28 +195,29 @@ qt5_add_resources(RESOURCES ${QRC_RESOURCES})
...
@@ -194,28 +195,29 @@ qt5_add_resources(RESOURCES ${QRC_RESOURCES})
# Build.
# Build.
# Note: `update_translations` is provided by `languages/CMakeLists.txt`.
# Note: `update_translations` is provided by `languages/CMakeLists.txt`.
if
(
WIN32
)
if
(
WIN32
)
add_executable
(
${
LINPHONE_EXEC
}
WIN32
${
SOURCES
}
${
HEADERS
}
${
RESOURCES
}
)
add_executable
(
${
TARGET_NAME
}
WIN32
${
SOURCES
}
${
HEADERS
}
${
RESOURCES
}
)
else
()
else
()
add_executable
(
${
LINPHONE_EXEC
}
${
SOURCES
}
${
HEADERS
}
${
RESOURCES
}
)
add_executable
(
${
TARGET_NAME
}
${
SOURCES
}
${
HEADERS
}
${
RESOURCES
}
)
endif
()
endif
()
add_dependencies
(
${
LINPHONE_EXEC
}
update_translations
)
add_dependencies
(
${
TARGET_NAME
}
update_translations
)
if
(
NOT WIN32
)
if
(
NOT WIN32
)
add_dependencies
(
update_translations check_qml
)
add_dependencies
(
update_translations check_qml
)
endif
()
endif
()
set_target_properties
(
${
TARGET_NAME
}
PROPERTIES OUTPUT_NAME
"
${
EXECUTABLE_NAME
}
"
)
target_include_directories
(
${
LINPHONE_EXEC
}
SYSTEM PRIVATE
"
${
LINPHONE_INCLUDE_DIRS
}
"
)
target_include_directories
(
${
TARGET_NAME
}
SYSTEM PRIVATE
"
${
LINPHONE_INCLUDE_DIRS
}
"
)
foreach
(
package
${
QT5_PACKAGES
}
)
foreach
(
package
${
QT5_PACKAGES
}
)
target_include_directories
(
${
LINPHONE_EXEC
}
SYSTEM PRIVATE
"
${
Qt5
${
package
}
_INCLUDE_DIRS
}
"
)
target_include_directories
(
${
TARGET_NAME
}
SYSTEM PRIVATE
"
${
Qt5
${
package
}
_INCLUDE_DIRS
}
"
)
# `qt5_create_translation` is provided from `LinguistTools` package.
# `qt5_create_translation` is provided from `LinguistTools` package.
# But the `Qt5::LinguistTools` lib does not exist. Remove it.
# But the `Qt5::LinguistTools` lib does not exist. Remove it.
if
(
NOT
(
${
package
}
STREQUAL LinguistTools
))
if
(
NOT
(
${
package
}
STREQUAL LinguistTools
))
target_link_libraries
(
${
LINPHONE_EXEC
}
${
Qt5
${
package
}
_LIBRARIES
}
)
target_link_libraries
(
${
TARGET_NAME
}
${
Qt5
${
package
}
_LIBRARIES
}
)
endif
()
endif
()
endforeach
()
endforeach
()
target_link_libraries
(
${
LINPHONE_EXEC
}
${
LINPHONE_LIBRARIES
}
${
LINPHONECXX_LIBRARIES
}
)
target_link_libraries
(
${
TARGET_NAME
}
${
LINPHONE_LIBRARIES
}
${
LINPHONECXX_LIBRARIES
}
)
install
(
TARGETS
${
LINPHONE_EXEC
}
install
(
TARGETS
${
TARGET_NAME
}
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
...
...
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