meta: add metadata to win32 exe/dll files
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
file(GLOB_RECURSE common_sources *.c *.h include/ivy/*.h)
|
||||
|
||||
if (WIN32)
|
||||
set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/build/common.rc)
|
||||
endif ()
|
||||
|
||||
if (IVY_STATIC)
|
||||
add_library(ivy-common STATIC ${common_sources})
|
||||
add_library(ivy-common STATIC ${common_sources} ${rc_file})
|
||||
else ()
|
||||
add_library(ivy-common SHARED ${common_sources})
|
||||
add_library(ivy-common SHARED ${common_sources} ${rc_file})
|
||||
endif ()
|
||||
|
||||
target_include_directories(ivy-common PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/)
|
||||
|
||||
Reference in New Issue
Block a user