Skip to content

Commit

Permalink
fix tinyexr install
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed Feb 8, 2024
1 parent 42abcad commit 61825ee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/ext/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND
add_compile_options(-Wno-deprecated-non-prototype)
endif ()
add_subdirectory(assimp)
set_target_properties(assimp PROPERTIES UNITY_BUILD OFF)
set_target_properties(assimp PROPERTIES
UNITY_BUILD OFF
OUTPUT_NAME "luisa-render-ext-assimp")
if (UNIX AND NOT APPLE) # TODO: fix this
target_compile_definitions(assimp PRIVATE USE_FILE32API=1)
endif ()
Expand All @@ -54,8 +56,13 @@ else ()
endif ()
target_include_directories(tinyexr PUBLIC tinyexr)
target_link_libraries(tinyexr PUBLIC ${CMAKE_DL_LIBS})
set_target_properties(tinyexr PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
set_target_properties(tinyexr PROPERTIES
WINDOWS_EXPORT_ALL_SYMBOLS ON
OUTPUT_NAME "luisa-render-ext-tinyexr")
target_link_libraries(luisa-render-ext INTERFACE tinyexr)
install(TARGETS tinyexr
LIBRARY DESTINATION ${CMAKE_INSTALL_BINDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

# nlohmann json
add_library(nlohmann_json INTERFACE)
Expand Down

0 comments on commit 61825ee

Please sign in to comment.