mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 21:16:00 +02:00
16 lines
No EOL
648 B
CMake
16 lines
No EOL
648 B
CMake
MACRO(LINK_HIFI_LIBRARY LIBRARY TARGET ROOT_DIR)
|
|
if (NOT TARGET ${LIBRARY})
|
|
add_subdirectory(${ROOT_DIR}/libraries/${LIBRARY} ${ROOT_DIR}/libraries/${LIBRARY})
|
|
endif (NOT TARGET ${LIBRARY})
|
|
|
|
include_directories(${ROOT_DIR}/libraries/${LIBRARY}/src)
|
|
|
|
add_dependencies(${TARGET} ${LIBRARY})
|
|
target_link_libraries(${TARGET} ${LIBRARY})
|
|
|
|
if (APPLE)
|
|
# currently the "shared" library requires CoreServices
|
|
# link in required OS X framework
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework CoreServices")
|
|
endif (APPLE)
|
|
ENDMACRO(LINK_HIFI_LIBRARY _library _target _root_dir) |