29 lines
673 B
CMake
29 lines
673 B
CMake
# -*- cmake -*-
|
|
|
|
include_guard()
|
|
add_library( fs::glod INTERFACE IMPORTED )
|
|
|
|
include(Prebuilt)
|
|
use_prebuilt_binary(glod)
|
|
|
|
find_library(GLOD_LIBRARY
|
|
NAMES
|
|
GLOD.lib
|
|
libGLOD.dylib
|
|
libGLOD.a
|
|
PATHS "${ARCH_PREBUILT_DIRS_RELEASE}" REQUIRED NO_DEFAULT_PATH)
|
|
|
|
if (WINDOWS OR DARWIN)
|
|
target_link_libraries(fs::glod INTERFACE ${GLOD_LIBRARY})
|
|
elseif (LINUX)
|
|
find_library(VDS_LIBRARY
|
|
NAMES
|
|
libvds.a
|
|
PATHS "${ARCH_PREBUILT_DIRS_RELEASE}" REQUIRED NO_DEFAULT_PATH)
|
|
|
|
target_link_libraries(fs::glod INTERFACE ${GLOD_LIBRARY} ${VDS_LIBRARY})
|
|
endif ()
|
|
|
|
target_include_directories( fs::glod SYSTEM INTERFACE
|
|
${AUTOBUILD_INSTALL_DIR}/include/glod
|
|
) |