Page MenuHomePhabricator

CMakeLists.txt
No OneTemporary

Size
873 B
Referenced Files
None
Subscribers
None

CMakeLists.txt

if(POLICY CMP0042)
cmake_policy(SET CMP0042 NEW) # CMake 3.0
endif(POLICY CMP0042)
project(libxmount_input_ewf C)
add_library(xmount_input_ewf SHARED libxmount_input_ewf.c ../../libxmount/libxmount.c)
if(NOT STATIC_EWF)
include_directories(${LIBEWF_INCLUDE_DIRS})
set(LIBS ${LIBS} ${LIBEWF_LIBRARIES})
else(NOT STATIC_EWF)
add_definitions(-DHAVE_LIBEWF_STATIC)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libewf/include)
set(LIBS ${LIBS} ${CMAKE_CURRENT_SOURCE_DIR}/libewf/libewf/.libs/libewf.a)
if(NOT APPLE)
set(LIBS ${LIBS} "-lz")
else(NOT APPLE)
# As most of libewf's deps on OSx come from MacPorts, better link in
# everything statically
set(LIBS ${LIBS} "/opt/local/lib/libz.a")
endif(NOT APPLE)
endif(NOT STATIC_EWF)
target_link_libraries(xmount_input_ewf ${LIBS})
install(TARGETS xmount_input_ewf DESTINATION lib/xmount)

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 24, 4:01 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1142355
Default Alt Text
CMakeLists.txt (873 B)

Event Timeline