Fix 5sec stall when switching from an application to be stopped to an application that was stopped before. Make Xinstance thread safe
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			604 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			604 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| cmake_minimum_required(VERSION 2.4)
 | |
| 
 | |
| project(sigstoped)
 | |
| 
 | |
| set(SRC_FILES main.cpp process.cpp xinstance.cpp CppTimer.cpp)
 | |
| set(LIBS -lX11 -lrt)
 | |
| 
 | |
| add_executable(${PROJECT_NAME} ${SRC_FILES})
 | |
| 
 | |
| target_link_libraries( ${PROJECT_NAME} ${LIBS} -lstdc++fs)
 | |
| target_include_directories(${PROJECT_NAME} PRIVATE  "/usr/include/glib-2.0/" "/usr/lib/glib-2.0/include" "/usr/include/gdk-pixbuf-2.0")
 | |
| add_definitions(" -std=c++17 -Wall -Os -flto -fno-strict-aliasing")
 | |
| set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")
 | |
| 
 | |
| 
 | |
| set(CMAKE_INSTALL_PREFIX "/usr")
 | |
| install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
 |