mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	[cmake] improvements
This commit is contained in:
		| @@ -1,6 +1,5 @@ | ||||
| if(ENABLE_INNOEXTRACT) | ||||
| 	add_subdirectory("lib/innoextract") | ||||
| 	add_definitions(-DENABLE_INNOEXTRACT) | ||||
| endif() | ||||
|  | ||||
| set(launcher_SRCS | ||||
| @@ -219,6 +218,7 @@ vcmi_set_output_dir(vcmilauncher "") | ||||
| enable_pch(vcmilauncher) | ||||
|  | ||||
| if(ENABLE_INNOEXTRACT) | ||||
| 	target_compile_definitions(vcmilauncher PRIVATE ENABLE_INNOEXTRACT) | ||||
| 	target_link_libraries(vcmilauncher innoextract) | ||||
| endif() | ||||
|  | ||||
|   | ||||
| @@ -9,10 +9,10 @@ set(serverapp_HEADERS | ||||
|  | ||||
| assign_source_group(${serverapp_SRCS} ${serverapp_HEADERS}) | ||||
| add_executable(vcmiserver ${serverapp_SRCS} ${serverapp_HEADERS}) | ||||
| set(serverapp_LIBS vcmi) | ||||
|  | ||||
| set(serverapp_LIBS vcmi) | ||||
| if(CMAKE_SYSTEM_NAME MATCHES FreeBSD OR HAIKU) | ||||
| 	set(serverapp_LIBS execinfo ${serverapp_LIBS}) | ||||
| 	list(APPEND serverapp_LIBS execinfo) | ||||
| endif() | ||||
| target_link_libraries(vcmiserver PRIVATE ${serverapp_LIBS} minizip::minizip vcmiservercommon) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user