add win32 (msvc) support

This commit is contained in:
2024-11-14 16:56:12 +00:00
parent c14c2e5500
commit d614e110df
35 changed files with 454 additions and 280 deletions

View File

@@ -21,7 +21,7 @@ function(add_bluelib_module)
set(module_preproc_token BLUELIB_${module_preproc_token})
target_include_directories(blue-${module_name}-obj PUBLIC include/)
target_compile_definitions(blue-${module_name}-obj PUBLIC ${module_preproc_token})
target_compile_definitions(blue-${module_name}-obj PUBLIC ${module_preproc_token} BLUELIB_EXPORT=1)
foreach (dep ${arg_DEPENDENCIES})
target_link_libraries(blue-${module_name}-obj blue-${dep}-obj)
@@ -40,6 +40,10 @@ function(add_bluelib_module)
target_link_libraries(blue-${module_name}-s blue-${dep}-s)
endforeach (dep)
set_target_properties(blue-${module_name}-obj PROPERTIES FOLDER "Modules/${module_name}")
set_target_properties(blue-${module_name} PROPERTIES FOLDER "Binaries/${module_name}")
set_target_properties(blue-${module_name}-s PROPERTIES FOLDER "Binaries/${module_name}")
install(TARGETS blue-${module_name} blue-${module_name}-s)
install(FILES ${root_header} DESTINATION include/blue)
install(FILES ${headers} DESTINATION include/blue/${module_name})