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 36ba0ee commit b8a3d0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ project(InyokaEdit
set(PROJECT_COPYRIGHT "(C) 2011-present The InyokaEdit developers")

option(QT6 "Use Qt6" OFF)
option(BUILD_APPLICATION "Build main application" ON)

if (QT6)
set(QT_MAIN_VERSION Qt6)
Expand All @@ -46,10 +47,11 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(LINUX ON)
endif()


add_subdirectory(plugins)
add_subdirectory(application)

if (BUILD_APPLICATION)
add_subdirectory(application)
endif()

if(LINUX)
add_subdirectory(man)

Expand Down
8 changes: 4 additions & 4 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
# You should have received a copy of the GNU General Public License
# along with InyokaEdit. If not, see <https://www.gnu.org/licenses/>.

option(SPELLCHECKER-NUSPELL "Enable nuspell spellchecker plugin" OFF)
if(SPELLCHECKER-NUSPELL)
option(SPELLCHECKER_NUSPELL "Enable nuspell spellchecker plugin" OFF)
if(SPELLCHECKER_NUSPELL)
add_subdirectory(spellchecker-nuspell)
endif()

option(SPELLCHECKER-HUNSPELL "Enable hunspell spellchecker plugin" ON)
if(SPELLCHECKER-HUNSPELL)
option(SPELLCHECKER_HUNSPELL "Enable hunspell spellchecker plugin" ON)
if(SPELLCHECKER_HUNSPELL)
add_subdirectory(spellchecker-hunspell)
endif()

Expand Down

0 comments on commit b8a3d0f

Please sign in to comment.