Commit d5171c7e authored by Philip Trettner's avatar Philip Trettner

Made assimp-lean windows compatible

parent 1b7a9da1
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment