xref: /ide/tools/previewer/util/CMakeLists.txt (revision 7c804472)
17c804472Sopenharmony_ciaux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} util)
27c804472Sopenharmony_ciif(APPLE)
37c804472Sopenharmony_ci    aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/unix util_local)
47c804472Sopenharmony_cielse()
57c804472Sopenharmony_ci    aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/windows util_local)
67c804472Sopenharmony_ciendif()
77c804472Sopenharmony_ciadd_library(util STATIC ${util} ${util_local})
87c804472Sopenharmony_citarget_include_directories(util PUBLIC ${CMAKE_CURRENT_LIST_DIR} ${PROJECT_SOURCE_DIR}/third_party/jsoncpp/include/json)
97c804472Sopenharmony_ciif(NOT APPLE)
107c804472Sopenharmony_ci    target_link_libraries(util shlwapi dbghelp opengl32 gdi32)
117c804472Sopenharmony_ciendif()