Commit 1356e721 authored by Ghislain MARY's avatar Ghislain MARY

Fix build on Windows 10.

parent 671e57c6
......@@ -103,7 +103,6 @@ if(BZRTP_CPPFLAGS)
list(REMOVE_DUPLICATES BZRTP_CPPFLAGS)
add_definitions(${BZRTP_CPPFLAGS})
endif()
add_definitions("-DZRTP_EXPORTS")
include_directories(
include
......
......@@ -47,6 +47,7 @@ if(ENABLE_STATIC)
endif()
if(ENABLE_SHARED)
add_library(bzrtp SHARED ${SOURCE_FILES})
target_compile_definitions(bzrtp PRIVATE "-DZRTP_EXPORTS")
set_target_properties(bzrtp PROPERTIES VERSION 0)
target_link_libraries(bzrtp PRIVATE ${LIBS})
if(MSVC)
......
......@@ -20,12 +20,6 @@
#
############################################################################
if(ENABLE_STATIC)
set(PROJECT_LIBS bzrtp-static)
else()
set(PROJECT_LIBS bzrtp)
endif()
set(TEST_SOURCES
bzrtpCryptoTest.c
bzrtpParserTest.c
......@@ -46,7 +40,7 @@ add_executable(bzrtpTest ${TEST_SOURCES})
set_target_properties(bzrtpTest PROPERTIES LINK_FLAGS "${LINK_FLAGS}")
set_target_properties(bzrtpTest PROPERTIES LINKER_LANGUAGE CXX)
target_include_directories(bzrtpTest PUBLIC ${BCTOOLBOX_TESTER_INCLUDE_DIR})
target_link_libraries(bzrtpTest ${BCTOOLBOX_LIBRARIES} ${PROJECT_LIBS})
target_link_libraries(bzrtpTest ${BCTOOLBOX_LIBRARIES})
if(HAVE_SQRT)
target_link_libraries(bzrtpTest m)
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment