Skip to content
Snippets Groups Projects
Commit c0971cd0 authored by Squire's avatar Squire
Browse files

CHOP-662 Added booost library to unittest for lldiriterator.cpp

parent 29f1b466
Branches
Tags
No related merge requests found
...@@ -62,11 +62,15 @@ list(APPEND llvfs_SOURCE_FILES ${llvfs_HEADER_FILES}) ...@@ -62,11 +62,15 @@ list(APPEND llvfs_SOURCE_FILES ${llvfs_HEADER_FILES})
add_library (llvfs ${llvfs_SOURCE_FILES}) add_library (llvfs ${llvfs_SOURCE_FILES})
target_link_libraries(llvfs set(vfs_BOOST_LIBRARIES
${BOOST_FILESYSTEM_LIBRARY} ${BOOST_FILESYSTEM_LIBRARY}
${BOOST_SYSTEM_LIBRARY} ${BOOST_SYSTEM_LIBRARY}
) )
target_link_libraries(llvfs
${vfs_BOOST_LIBRARIES}
)
if (DARWIN) if (DARWIN)
include(CMakeFindFrameworks) include(CMakeFindFrameworks)
find_library(CARBON_LIBRARY Carbon) find_library(CARBON_LIBRARY Carbon)
...@@ -79,13 +83,18 @@ if (LL_TESTS) ...@@ -79,13 +83,18 @@ if (LL_TESTS)
include(LLAddBuildTest) include(LLAddBuildTest)
# UNIT TESTS # UNIT TESTS
SET(llvfs_TEST_SOURCE_FILES SET(llvfs_TEST_SOURCE_FILES
# none so far
lldiriterator.cpp lldiriterator.cpp
) )
set_source_files_properties(lldiriterator.cpp
PROPERTIES
LL_TEST_ADDITIONAL_LIBRARIES "${vfs_BOOST_LIBRARIES}"
)
LL_ADD_PROJECT_UNIT_TESTS(llvfs "${llvfs_TEST_SOURCE_FILES}") LL_ADD_PROJECT_UNIT_TESTS(llvfs "${llvfs_TEST_SOURCE_FILES}")
# INTEGRATION TESTS # INTEGRATION TESTS
set(test_libs llmath llcommon llvfs ${LLCOMMON_LIBRARIES} ${WINDOWS_LIBRARIES}) set(test_libs llmath llcommon llvfs ${LLCOMMON_LIBRARIES} ${WINDOWS_LIBRARIES})
# TODO: Some of these need refactoring to be proper Unit tests rather than Integration tests. # TODO: Some of these need refactoring to be proper Unit tests rather than Integration tests.
LL_ADD_INTEGRATION_TEST(lldir "" "${test_libs}") LL_ADD_INTEGRATION_TEST(lldir "" "${test_libs}")
endif (LL_TESTS) endif (LL_TESTS)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment