Skip to content

Commit

Permalink
cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
ElTh0r0 committed Mar 30, 2024
1 parent b8a3d0f commit e908c66
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ set(PROJECT_COPYRIGHT "(C) 2011-present The InyokaEdit developers")

option(QT6 "Use Qt6" OFF)
option(BUILD_APPLICATION "Build main application" ON)
option(BUILD_COMMUNITY_ONLY "Build community package only" OFF)

if (QT6)
set(QT_MAIN_VERSION Qt6)
Expand All @@ -40,20 +41,24 @@ else()
endif()
endif()

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
include(cmake/preview-deps.cmake)

if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(LINUX ON)
endif()

add_subdirectory(plugins)
if (BUILD_APPLICATION)
add_subdirectory(application)
if (NOT BUILD_COMMUNITY_ONLY)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
include(cmake/preview-deps.cmake)

add_subdirectory(plugins)
if (BUILD_APPLICATION)
add_subdirectory(application)
endif()
endif()

if(LINUX)
add_subdirectory(man)
if (BUILD_APPLICATION)
add_subdirectory(man)
endif()

if(COMMUNITY STREQUAL "community/ubuntuusers_de")
include(GNUInstallDirs)
Expand Down

0 comments on commit e908c66

Please sign in to comment.