Commit 607bdb76 authored by Ghislain MARY's avatar Ghislain MARY

Fix symbol exports of bctoolbox-tester on Windows.

parent 9a95a107
......@@ -66,6 +66,9 @@ if(ENABLE_STATIC)
if(CUNIT_FOUND)
add_library(bctoolbox-tester-static STATIC ${BCTOOLBOX_TESTER_SOURCE_FILES})
set_target_properties(bctoolbox-tester-static PROPERTIES OUTPUT_NAME bctoolbox-tester)
if(WIN32)
target_compile_definitions(bctoolbox-tester-static PRIVATE "-DBCTBX_EXPORTS")
endif()
endif()
if(HAVE_LIBRT)
target_link_libraries(bctoolbox-static rt)
......@@ -96,6 +99,9 @@ if(ENABLE_SHARED)
if(CUNIT_FOUND)
add_library(bctoolbox-tester SHARED ${BCTOOLBOX_TESTER_SOURCE_FILES})
set_target_properties(bctoolbox-tester PROPERTIES LINKER_LANGUAGE "CXX")
if(WIN32)
target_compile_definitions(bctoolbox-tester PRIVATE "-DBCTBX_EXPORTS")
endif()
if(ANDROID)
set_target_properties(bctoolbox-tester PROPERTIES OUTPUT_NAME "bctoolbox-tester-${CMAKE_SYSTEM_PROCESSOR}")
else()
......
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