add win32 (msvc) support
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user