diff options
author | gregory guy <gregory-tde@laposte.net> | 2021-10-07 15:17:57 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-12-08 16:28:04 +0100 |
commit | bf076238d30b3e8523b5362f5698ea2e3660c5bf (patch) | |
tree | f9651b26933ef3054a482f07ae428fd5c0aec431 /example | |
parent | 8081a13a660196b987f3e99f899f502f9bc947c7 (diff) | |
download | tqscintilla-bf076238.tar.gz tqscintilla-bf076238.zip |
Conversion to the cmake building system.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
(cherry picked from commit a69b55c674b0528c00598bea54b7a661f4e49f27)
Diffstat (limited to 'example')
-rw-r--r-- | example/CMakeLists.txt | 24 | ||||
-rw-r--r-- | example/application.cpp | 4 |
2 files changed, 27 insertions, 1 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt new file mode 100644 index 0000000..9512ae3 --- /dev/null +++ b/example/CMakeLists.txt @@ -0,0 +1,24 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/qt + ${CMAKE_SOURCE_DIR}/src +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### app (executable) + +tde_add_executable( app AUTOMOC + + SOURCES + application.cpp + main.cpp + LINK + qscintilla-shared +) diff --git a/example/application.cpp b/example/application.cpp index ab40c63..92a7123 100644 --- a/example/application.cpp +++ b/example/application.cpp @@ -18,7 +18,7 @@ #include <tqmenubar.h> #include <tqfile.h> #include <tqfiledialog.h> -#include <statusbar.h> +#include <tqstatusbar.h> #include <tqmessagebox.h> #include <tqprinter.h> #include <tqapplication.h> @@ -269,3 +269,5 @@ void ApplicationWindow::aboutTQt() { TQMessageBox::aboutTQt( this, "TQScintilla Application Example" ); } + +#include "application.moc" |