diff options
author | Philipp Kerling <pkerling@casix.org> | 2018-01-04 10:14:37 +0100 |
---|---|---|
committer | Philipp Kerling <pkerling@casix.org> | 2018-01-04 13:21:49 +0100 |
commit | a98265b05347589d45fac6221017b87ac397203f (patch) | |
tree | 52acb19bf72fdc7cd1a5a7d892769b4d7f7c3702 /CMakeLists.txt | |
parent | daed233cb9104828aa37cfe47c3cbaa149ce4f82 (diff) |
[cmake] Export symbols also in test executable (for cpluff)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d297f7ea23..fcec3151c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -346,6 +346,7 @@ endif() # testing copy_files_from_filelist_to_buildtree(${CMAKE_SOURCE_DIR}/cmake/installdata/test-reference-data.txt NO_INSTALL) add_executable(${APP_NAME_LC}-test EXCLUDE_FROM_ALL ${CMAKE_SOURCE_DIR}/xbmc/test/xbmc-test.cpp ${test_sources}) +set_target_properties(${APP_NAME_LC}-test PROPERTIES ENABLE_EXPORTS ON) whole_archive(_TEST_LIBRARIES ${core_DEPENDS} gtest) target_link_libraries(${APP_NAME_LC}-test PRIVATE ${SYSTEM_LDFLAGS} ${_TEST_LIBRARIES} lib${APP_NAME_LC} ${DEPLIBS} ${CMAKE_DL_LIBS}) unset(_TEST_LIBRARIES) |