Whyblocked reminds you why you blocked someone.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
945B

  1. cmake_minimum_required (VERSION 3.7)
  2. project (whyblocked
  3. VERSION 0.1.0
  4. LANGUAGES CXX
  5. )
  6. include(GNUInstallDirs)
  7. find_package(PkgConfig REQUIRED)
  8. pkg_check_modules(LIBXDG_BASEDIR REQUIRED libxdg-basedir)
  9. set(CMAKE_CXX_STANDARD 14)
  10. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  11. set(CMAKE_CXX_EXTENSIONS OFF)
  12. set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -g -Og")
  13. include_directories(${PROJECT_SOURCE_DIR}/src)
  14. include_directories(${PROJECT_BINARY_DIR})
  15. include_directories(${LIBXDG_BASEDIR_INCLUDE_DIRS})
  16. link_directories(${LIBXDG_BASEDIR_LIBRARY_DIRS})
  17. # Write version in header
  18. configure_file (
  19. "${PROJECT_SOURCE_DIR}/src/version.hpp.in"
  20. "${PROJECT_BINARY_DIR}/version.hpp"
  21. )
  22. file(GLOB sources src/*.cpp)
  23. add_executable(whyblocked ${sources})
  24. target_link_libraries(whyblocked
  25. ${LIBXDG_BASEDIR_LIBRARIES} vsqlitepp stdc++fs)
  26. install(TARGETS whyblocked DESTINATION ${CMAKE_INSTALL_BINDIR})