Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
c6b6d856
Commit
c6b6d856
authored
Jun 27, 2016
by
Gautier Pelloux-Prayer
Browse files
cmake: fix compilation when building with static libraries
parent
755c2132
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
console/CMakeLists.txt
console/CMakeLists.txt
+3
-3
daemon/CMakeLists.txt
daemon/CMakeLists.txt
+2
-2
gtk/CMakeLists.txt
gtk/CMakeLists.txt
+1
-1
No files found.
console/CMakeLists.txt
View file @
c6b6d856
...
...
@@ -37,21 +37,21 @@ if(MSVC)
endif
()
add_executable
(
linphonec
${
LINPHONEC_SOURCE_FILES
}
)
target_link_libraries
(
linphonec
linphone
${
BCTOOLBOX_LIBRARIES
}
${
ORTP_LIBRARIES
}
${
MEDIASTREAMER2_LIBRARIES
}
)
target_link_libraries
(
linphonec
${
LINPHONE_LIBS_FOR_TOOLS
}
${
BCTOOLBOX_LIBRARIES
}
${
ORTP_LIBRARIES
}
${
MEDIASTREAMER2_LIBRARIES
}
)
if
(
INTL_FOUND
)
target_link_libraries
(
linphonec
${
INTL_LIBRARIES
}
)
endif
()
if
(
WIN32
)
add_executable
(
linphoned WIN32
${
LINPHONEC_SOURCE_FILES
}
)
target_link_libraries
(
linphoned
linphone
${
BCTOOLBOX_LIBRARIES
}
${
ORTP_LIBRARIES
}
${
MEDIASTREAMER2_LIBRARIES
}
)
target_link_libraries
(
linphoned
${
LINPHONE_LIBS_FOR_TOOLS
}
${
BCTOOLBOX_LIBRARIES
}
${
ORTP_LIBRARIES
}
${
MEDIASTREAMER2_LIBRARIES
}
)
if
(
INTL_FOUND
)
target_link_libraries
(
linphoned
${
INTL_LIBRARIES
}
)
endif
()
endif
()
add_executable
(
linphonecsh
${
LINPHONECSH_SOURCE_FILES
}
)
target_link_libraries
(
linphonecsh
linphone
${
ORTP_LIBRARIES
}
)
target_link_libraries
(
linphonecsh
${
LINPHONE_LIBS_FOR_TOOLS
}
${
ORTP_LIBRARIES
}
)
set
(
INSTALL_TARGETS linphonec linphonecsh
)
if
(
WIN32
)
...
...
daemon/CMakeLists.txt
View file @
c6b6d856
...
...
@@ -114,10 +114,10 @@ apply_compile_flags(DAEMON_PIPETEST_SOURCE_FILES "CPP" "C")
add_executable
(
linphone-daemon
${
DAEMON_SOURCE_FILES
}
)
target_include_directories
(
linphone-daemon PRIVATE
${
CMAKE_CURRENT_LIST_DIR
}
)
target_link_libraries
(
linphone-daemon
linphone
${
MEDIASTREAMER2_LIBRARIES
}
)
target_link_libraries
(
linphone-daemon
${
LINPHONE_LIBS_FOR_TOOLS
}
${
MEDIASTREAMER2_LIBRARIES
}
)
add_executable
(
linphone-daemon-pipetest
${
DAEMON_PIPETEST_SOURCE_FILES
}
)
target_link_libraries
(
linphone-daemon-pipetest
linphone
${
ORTP_LIBRARIES
}
)
target_link_libraries
(
linphone-daemon-pipetest
${
LINPHONE_LIBS_FOR_TOOLS
}
${
ORTP_LIBRARIES
}
)
set
(
INSTALL_TARGETS linphone-daemon linphone-daemon-pipetest
)
...
...
gtk/CMakeLists.txt
View file @
c6b6d856
...
...
@@ -94,7 +94,7 @@ else()
endif
()
set_target_properties
(
linphone-gtk PROPERTIES OUTPUT_NAME linphone LINKER_LANGUAGE CXX
)
target_include_directories
(
linphone-gtk PUBLIC
${
GTK2_INCLUDE_DIRS
}
${
INTL_INCLUDE_DIRS
}
)
target_link_libraries
(
linphone-gtk
linphone
${
GTK2_LIBRARIES
}
${
BCTOOLBOX_LIBRARIES
}
${
ORTP_LIBRARIES
}
${
MEDIASTREAMER2_LIBRARIES
}
)
target_link_libraries
(
linphone-gtk
${
LINPHONE_LIBS_FOR_TOOLS
}
${
GTK2_LIBRARIES
}
${
BCTOOLBOX_LIBRARIES
}
${
ORTP_LIBRARIES
}
${
MEDIASTREAMER2_LIBRARIES
}
)
if
(
INTL_FOUND
)
target_link_libraries
(
linphone-gtk
${
INTL_LIBRARIES
}
)
endif
()
...
...
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