CMakeLists.txt 931 B

12345678910111213141516171819202122232425262728293031
  1. cmake_minimum_required(VERSION 3.8)
  2. project(rainynite-studio)
  3. set(RAINYNITE_STUDIO_VERSION "0.6+" CACHE STRING "RainyNite studio version number string" FORCE)
  4. set(RAINYNITE_STUDIO_CODENAME "Pulse Of Life" CACHE STRING "RainyNite studio version codename" FORCE)
  5. set(CMAKE_CXX_STANDARD 17)
  6. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  7. ## Qt-related stuff
  8. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  9. set(CMAKE_AUTOMOC ON)
  10. set(CMAKE_AUTOUIC ON)
  11. set(CMAKE_AUTORCC ON)
  12. add_definitions(-DQT_NO_KEYWORDS) ## avoid slots/signals definition conflict
  13. find_package(Qt5 COMPONENTS Core Widgets Multimedia MultimediaWidgets REQUIRED)
  14. find_package(KF5ItemModels REQUIRED)
  15. find_package(geom_helpers REQUIRED)
  16. find_package(rainynite_core REQUIRED)
  17. find_package(Boost REQUIRED COMPONENTS filesystem system)
  18. find_package(Threads)
  19. include_directories(thirdparty/Qt-Color-Widgets/include)
  20. add_subdirectory(thirdparty/Qt-Color-Widgets)
  21. add_subdirectory(studio)