Skip to content

Commit

Permalink
Merge pull request #3079 from Waqar144/work/move-cmake-into-src
Browse files Browse the repository at this point in the history
Move CMake into src
  • Loading branch information
pbek authored Aug 7, 2024
2 parents f39a558 + caccc2b commit ec02625
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 7 deletions.
7 changes: 0 additions & 7 deletions CMakeLists.txt

This file was deleted.

2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.5)
project(QOwnNotes)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)

# BEGIN options
option(QON_QT6_BUILD "Build QOwnNotes with Qt6" OFF)
# END options
Expand Down
File renamed without changes.
47 changes: 47 additions & 0 deletions src/libraries/sonnet/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS REQUIRED
Core
)

add_library(Sonnet
STATIC
src/core/backgroundchecker.cpp
src/core/backgroundchecker.h
src/core/backgroundchecker_p.h
src/core/client.cpp
src/core/client_p.h
src/core/core_debug.cpp
src/core/core_debug.h
src/core/guesslanguage.cpp
src/core/guesslanguage.h
src/core/languagefilter.cpp
src/core/languagefilter_p.h
src/core/loader.cpp
src/core/loader_p.h
src/core/settings.cpp
src/core/settings_p.h
src/core/sonnetcore_export.h
src/core/speller.cpp
src/core/speller.h
src/core/spellerplugin.cpp
src/core/spellerplugin_p.h
src/core/textbreaks.cpp
src/core/textbreaks_p.h
src/core/tokenizer.cpp
src/core/tokenizer_p.h
# Hunspell plugin
src/plugins/hunspell/hunspellclient.cpp
src/plugins/hunspell/hunspellclient.h
src/plugins/hunspell/hunspelldebug.cpp
src/plugins/hunspell/hunspelldebug.h
src/plugins/hunspell/hunspelldict.cpp
src/plugins/hunspell/hunspelldict.h
)

# The hunspell library
add_subdirectory(src/plugins/hunspell/hunspell)

target_link_libraries(Sonnet
PRIVATE
Qt${QT_VERSION_MAJOR}::Core
Hunspell
)

0 comments on commit ec02625

Please sign in to comment.