libarchive, instead of recompiling libarchive source. The old
approach did allow us to use different flags for compiling libarchive
sources into libarchive_test, but speeding up the build is probably a
worthwhile trade-off.
SVN-Revision: 2051
#
############################################
IF(ENABLE_TEST)
- FOREACH (_src ${libarchive_SOURCES})
- LIST(APPEND parent_libarchive_SOURCES "../${_src}")
- ENDFOREACH(_src)
-
SET(libarchive_test_SOURCES
- ${parent_libarchive_SOURCES}
main.c
read_open_memory.c
test.h
# Register target
#
ADD_EXECUTABLE(libarchive_test ${libarchive_test_SOURCES})
- TARGET_LINK_LIBRARIES(libarchive_test ${ADDITIONAL_LIBS})
+ TARGET_LINK_LIBRARIES(libarchive_test archive_static ${ADDITIONAL_LIBS})
SET_PROPERTY(TARGET libarchive_test PROPERTY COMPILE_DEFINITIONS
LIBARCHIVE_STATIC LIST_H)