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
belle-sip
Commits
c50eb11d
Commit
c50eb11d
authored
Jun 19, 2014
by
Ghislain MARY
Browse files
Fix compilation with CMake on Debian 7.
parent
7244aa27
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
c50eb11d
...
...
@@ -120,6 +120,12 @@ if(HAVE_POLARSSL)
get_filename_component
(
polarssl_library_path
"
${
POLARSSL_LIBRARIES
}
"
PATH
)
set
(
LIBS_PRIVATE
"
${
LIBS_PRIVATE
}
-L
${
polarssl_library_path
}
-lpolarssl"
)
endif
(
HAVE_POLARSSL
)
if
(
HAVE_LIBDL
)
set
(
LIBS_PRIVATE
"
${
LIBS_PRIVATE
}
-ldl"
)
endif
()
if
(
HAVE_LIBRT
)
set
(
LIBS_PRIVATE
"
${
LIBS_PRIVATE
}
-lrt"
)
endif
()
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/belle-sip.pc.in
${
CMAKE_CURRENT_BINARY_DIR
}
/belle-sip.pc
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/belle-sip.pc DESTINATION lib/pkgconfig
)
...
...
src/CMakeLists.txt
View file @
c50eb11d
...
...
@@ -31,6 +31,9 @@ endif(${Threads_FOUND})
if
(
${
HAVE_LIBDL
}
)
list
(
APPEND LIBS dl
)
endif
(
${
HAVE_LIBDL
}
)
if
(
${
HAVE_LIBRT
}
)
list
(
APPEND LIBS rt
)
endif
()
if
(
${
HAVE_RESINIT
}
)
list
(
APPEND LIBS resolv
)
endif
(
${
HAVE_RESINIT
}
)
...
...
tester/CMakeLists.txt
View file @
c50eb11d
...
...
@@ -41,7 +41,11 @@ set(TESTER_SOURCES
add_executable
(
belle_sip_tester
${
TESTER_SOURCES
}
)
set_target_properties
(
belle_sip_tester PROPERTIES LINK_FLAGS
"
${
LINK_FLAGS
}
"
)
target_include_directories
(
belle_sip_tester PUBLIC
${
CUNIT_INCLUDE_DIR
}
)
if
(
"
${
CMAKE_VERSION
}
"
VERSION_GREATER
"2.8.10"
)
target_include_directories
(
belle_sip_tester PUBLIC
${
CUNIT_INCLUDE_DIR
}
)
else
(
"
${
CMAKE_VERSION
}
"
VERSION_GREATER
"2.8.10"
)
include_directories
(
${
CUNIT_INCLUDE_DIR
}
)
endif
(
"
${
CMAKE_VERSION
}
"
VERSION_GREATER
"2.8.10"
)
target_link_libraries
(
belle_sip_tester
${
CUNIT_LIBRARIES
}
bellesip
)
add_test
(
NAME belle_sip_tester COMMAND belle_sip_tester --verbose
)
...
...
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