Adds windows shared build support under cmake (#18)
* Adds windows shared build support under cmake * makes publicpull/21/head
parent
1008f83092
commit
d630f65613
|
|
@ -121,6 +121,10 @@ target_compile_options(norm PUBLIC ${PLATFORM_FLAGS})
|
|||
target_include_directories(norm PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
||||
target_include_directories(norm PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
|
||||
|
||||
if(BUILD_SHARED_LIBS AND WIN32)
|
||||
target_compile_definitions(norm PUBLIC NORM_USE_DLL)
|
||||
endif()
|
||||
|
||||
# Install target
|
||||
install( TARGETS norm protokit EXPORT normTargets
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
|
|
|
|||
Loading…
Reference in New Issue