Skip to content
Snippets Groups Projects
Commit d5171c7e authored by Philip Trettner's avatar Philip Trettner
Browse files

Made assimp-lean windows compatible

parent 1b7a9da1
Branches
No related tags found
No related merge requests found
Pipeline #
......@@ -6,7 +6,13 @@ file(GLOB_RECURSE HEADER_FILES "*.hh" "*.h" "*.hpp" "*.inl")
add_subdirectory(contrib/zlib)
add_library(assimp SHARED ${SOURCE_FILES} ${HEADER_FILES})
if(MSVC)
set(ASSIMP_LINK_TYPE STATIC)
else()
set(ASSIMP_LINK_TYPE SHARED)
endif()
add_library(assimp ${ASSIMP_LINK_TYPE} ${SOURCE_FILES} ${HEADER_FILES})
if(MSVC)
target_include_directories(assimp PUBLIC
......@@ -23,6 +29,10 @@ if(NOT MSVC)
target_compile_options(assimp PUBLIC
$<$<COMPILE_LANGUAGE:CXX>:-std=c++11>
)
else()
target_compile_options(assimp PUBLIC
/MP # multi processor compilation
)
endif()
target_compile_definitions(assimp PUBLIC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment