Rename all library targets to start with wx. This way it does not use generic names like base or core that could interfere with other libraries that add include the wxWidgets project.
		
			
				
	
	
		
			31 lines
		
	
	
		
			789 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			789 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
#############################################################################
 | 
						|
# Name:        build/cmake/lib/net/CMakeLists.txt
 | 
						|
# Purpose:     CMake file for net library
 | 
						|
# Author:      Tobias Taschner
 | 
						|
# Created:     2016-09-21
 | 
						|
# Copyright:   (c) 2016 wxWidgets development team
 | 
						|
# Licence:     wxWindows licence
 | 
						|
#############################################################################
 | 
						|
 | 
						|
include(../../source_groups.cmake)
 | 
						|
 | 
						|
wx_append_sources(NET_FILES NET_CMN)
 | 
						|
 | 
						|
if(WIN32)
 | 
						|
    wx_append_sources(NET_FILES NET_WIN32)
 | 
						|
elseif(APPLE)
 | 
						|
    wx_append_sources(NET_FILES NET_OSX)
 | 
						|
endif()
 | 
						|
 | 
						|
if(UNIX AND NOT WIN32)
 | 
						|
    wx_append_sources(NET_FILES NET_UNIX)
 | 
						|
endif()
 | 
						|
 | 
						|
wx_add_library(wxnet IS_BASE ${NET_FILES})
 | 
						|
 | 
						|
if(WIN32)
 | 
						|
    wx_lib_link_libraries(wxnet PRIVATE ws2_32)
 | 
						|
endif()
 | 
						|
 | 
						|
wx_finalize_lib(wxnet)
 |