Move target_link_libraries after definiing the target
This commit is contained in:
		
					parent
					
						
							
								8e2e9ecbc3
							
						
					
				
			
			
				commit
				
					
						70413c7232
					
				
			
		
					 1 changed files with 14 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -15,19 +15,6 @@ set(danbooru_client_SRCS
 | 
			
		|||
 | 
			
		||||
add_subdirectory(libdanbooru)
 | 
			
		||||
 | 
			
		||||
target_link_libraries(danbooru_client PUBLIC
 | 
			
		||||
                      Qt5::Widgets
 | 
			
		||||
                      Qt5::Core
 | 
			
		||||
                      Qt5::Quick
 | 
			
		||||
                      KF5::CoreAddons
 | 
			
		||||
                      KF5::IconThemes
 | 
			
		||||
                      KF5::I18n
 | 
			
		||||
                      KF5::TextWidgets
 | 
			
		||||
                      KF5::XmlGui
 | 
			
		||||
                      KF5::ConfigWidgets
 | 
			
		||||
                      KF5::KIOCore
 | 
			
		||||
                      danbooru
 | 
			
		||||
                    )
 | 
			
		||||
 | 
			
		||||
include_directories(
 | 
			
		||||
    model)
 | 
			
		||||
| 
						 | 
				
			
			@ -41,6 +28,20 @@ add_executable(danbooru_client
 | 
			
		|||
                    ${danbooru_client_SRCS}
 | 
			
		||||
                    )
 | 
			
		||||
 | 
			
		||||
target_link_libraries(danbooru_client PUBLIC
 | 
			
		||||
                      Qt5::Widgets
 | 
			
		||||
                      Qt5::Core
 | 
			
		||||
                      KF5::CoreAddons
 | 
			
		||||
                      # KF5::GuiAddons
 | 
			
		||||
                      KF5::IconThemes
 | 
			
		||||
                      KF5::I18n
 | 
			
		||||
                      KF5::TextWidgets
 | 
			
		||||
                      KF5::XmlGui
 | 
			
		||||
                      KF5::ConfigWidgets
 | 
			
		||||
                      KF5::KIOCore
 | 
			
		||||
                      danbooru
 | 
			
		||||
                    )
 | 
			
		||||
 | 
			
		||||
install(TARGETS danbooru_client ${INSTALL_TARGETS_DEFAULT_ARGS} )
 | 
			
		||||
 | 
			
		||||
########### install files ###############
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue