Files
sigstoped/CMakeLists.txt
uvos 21d5c9475b Configureable timout for applications to close their windows.
Fix 5sec stall when switching from an application to be stopped to an application that was stopped before.
Make Xinstance thread safe
2020-07-01 19:21:27 +02:00

18 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)