overte-JulianGro/libraries/shared/CMakeLists.txt
2022-06-28 00:34:41 +02:00

37 lines
1.1 KiB
CMake

set(TARGET_NAME shared)
include_directories("${QT_DIR}/include/QtCore/${QT_VERSION}/QtCore" "${QT_DIR}/include/QtCore/${QT_VERSION}")
# TODO: there isn't really a good reason to have Script linked here - let's get what is requiring it out (RegisteredMetaTypes.cpp)
setup_hifi_library(Gui Network Script)
if (WIN32)
target_link_libraries(${TARGET_NAME} Wbemuuid.lib)
add_compile_definitions(_USE_MATH_DEFINES)
endif()
if (ANDROID)
target_link_libraries(${TARGET_NAME} android)
endif()
if (APPLE)
find_library(FRAMEWORK_IOKIT IOKit)
find_library(CORE_FOUNDATION CoreFoundation)
find_library(OpenGL OpenGL)
target_link_libraries(${TARGET_NAME} ${FRAMEWORK_IOKIT} ${CORE_FOUNDATION} ${OpenGL})
endif()
if (UNIX AND NOT APPLE)
find_package(Journald)
if (${JOURNALD_FOUND})
target_link_libraries(${TARGET_NAME} ${JOURNALD_LIBRARIES})
target_include_directories(${TARGET_NAME} PRIVATE ${JOURNALD_INCLUDE_DIR})
target_compile_definitions(${TARGET_NAME} PUBLIC HAS_JOURNALD)
endif()
endif()
target_zlib()
target_nsight()
target_json()