summaryrefslogtreecommitdiff
path: root/src/lib/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/CMakeLists.txt')
-rwxr-xr-xsrc/lib/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index 2ad8ce5..4b0f4f0 100755
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -39,6 +39,10 @@ set(dlt_LIB_SRCS dlt_user dlt_client ${CMAKE_SOURCE_DIR}/src/shared/dlt_common.c
add_library(dlt ${dlt_LIB_SRCS})
+IF(GPROF_DLT_LIB)
+ SET(CMAKE_C_FLAGS "-pg")
+ENDIF(GPROF_DLT_LIB)
+
target_link_libraries(dlt rt ${CMAKE_THREAD_LIBS_INIT})
set_target_properties(dlt PROPERTIES VERSION 2.2.0 SOVERSION 2)