mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	[cmake] install() vcmiqt target only when it's shared
This commit is contained in:
		| @@ -20,9 +20,11 @@ assign_source_group(${vcmiqt_SRCS} ${vcmiqt_HEADERS}) | ||||
| if(ENABLE_STATIC_LIBS OR NOT (ENABLE_EDITOR AND ENABLE_LAUNCHER)) | ||||
| 	add_library(vcmiqt STATIC ${vcmiqt_SRCS} ${vcmiqt_HEADERS}) | ||||
| 	target_compile_definitions(vcmiqt PRIVATE VCMIQT_STATIC) | ||||
| 	set(TARGET_IS_SHARED OFF) | ||||
| else() | ||||
| 	add_library(vcmiqt SHARED ${vcmiqt_SRCS} ${vcmiqt_HEADERS}) | ||||
| 	target_compile_definitions(vcmiqt PRIVATE VCMIQT_SHARED) | ||||
| 	set(TARGET_IS_SHARED ON) | ||||
| endif() | ||||
|  | ||||
| if(WIN32) | ||||
| @@ -39,7 +41,7 @@ target_include_directories(vcmiqt PUBLIC | ||||
| 	${CMAKE_CURRENT_SOURCE_DIR} | ||||
| ) | ||||
|  | ||||
| if(NOT ENABLE_STATIC_LIBS OR (ENABLE_EDITOR AND ENABLE_LAUNCHER)) | ||||
| if(TARGET_IS_SHARED) | ||||
| 	install(TARGETS vcmiqt RUNTIME DESTINATION ${LIB_DIR} LIBRARY DESTINATION ${LIB_DIR}) | ||||
| endif() | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user