projects
/
platform
/
core
/
api
/
connection.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove DEPRECATED connection_set_ethernet_cable_state_chaged_cb() call
[platform/core/api/connection.git]
/
test
/
CMakeLists.txt
diff --git
a/test/CMakeLists.txt
b/test/CMakeLists.txt
old mode 100644
(file)
new mode 100755
(executable)
index
7715cac
..
dea5547
--- a/
test/CMakeLists.txt
+++ b/
test/CMakeLists.txt
@@
-1,12
+1,18
@@
+PROJECT(connection_test C)
+
SET(fw_test "${fw_name}-test")
SET(fw_test "${fw_name}-test")
+SET(dependents "capi-base-common glib-2.0 network")
+SET(pc_dependents "capi-base-common")
+
INCLUDE(FindPkgConfig)
INCLUDE(FindPkgConfig)
-pkg_check_modules(${fw_test} REQUIRED
glib-2.0
)
+pkg_check_modules(${fw_test} REQUIRED
${dependents}
)
FOREACH(flag ${${fw_test}_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
FOREACH(flag ${${fw_test}_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
aux_source_directory(. sources)
FOREACH(src ${sources})
aux_source_directory(. sources)
FOREACH(src ${sources})
@@
-15,3
+21,5
@@
FOREACH(src ${sources})
ADD_EXECUTABLE(${src_name} ${src})
TARGET_LINK_LIBRARIES(${src_name} ${fw_name} ${${fw_test}_LDFLAGS})
ENDFOREACH()
ADD_EXECUTABLE(${src_name} ${src})
TARGET_LINK_LIBRARIES(${src_name} ${fw_name} ${${fw_test}_LDFLAGS})
ENDFOREACH()
+
+INSTALL(TARGETS connection_test RUNTIME DESTINATION bin/)