Fix linked libraries with CMake

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 10 years ago
parent 60b59babcc
commit 4c2accb349

@ -83,6 +83,12 @@ if( NOT LIBGLADE_FOUND )
tde_message_fatal( "libglade-2.0 are required, but not found on your system" ) tde_message_fatal( "libglade-2.0 are required, but not found on your system" )
endif( NOT LIBGLADE_FOUND ) endif( NOT LIBGLADE_FOUND )
set( EXTRA_LIBRARIES "-lm -lpthread" )
if( UNIX )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden" )
endif( UNIX )
message( STATUS "Ready to build with backend ${BACKEND_NAME}" ) message( STATUS "Ready to build with backend ${BACKEND_NAME}" )

@ -40,7 +40,7 @@ tde_add_library(
${target} SHARED ${target} SHARED
VERSION 0.0.0 VERSION 0.0.0
SOURCES ${${target}_SRCS} SOURCES ${${target}_SRCS}
LINK ${BACKEND_LIBS} LINK ${BACKEND_LIBRARIES} ${ZLIB_LIBRARIES} ${EXTRA_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR} DESTINATION ${LIB_INSTALL_DIR}
) )
@ -48,7 +48,7 @@ tde_add_library(
${target} STATIC ${target} STATIC
VERSION 0.0.0 VERSION 0.0.0
SOURCES ${${target}_SRCS} SOURCES ${${target}_SRCS}
LINK ${BACKEND_LIBS} LINK ${BACKEND_LIBRARIES} ${ZLIB_LIBRARIES} ${EXTRA_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR} DESTINATION ${LIB_INSTALL_DIR}
) )

Loading…
Cancel
Save