diff --git a/CMakeLists.txt b/CMakeLists.txt index d8eff79c..1f6df975 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,7 +59,7 @@ set( QT_INSTALL_SYSCONF "/etc/${PROJECT_NAME}" ##### optional stuff option( WITH_ALL_OPTIONS "Enable all optional support" ON ) -option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" OFF ) +option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" OFF ) option( WITH_IMMODULE_EXTENSIONS "Enable immodule extensions support" OFF ) # break ABI option( WITH_STL "Enable c++ stl support" ${WITH_ALL_OPTIONS} ) option( WITH_IPV6 "Enable IPv6 support" ${WITH_ALL_OPTIONS} ) @@ -127,11 +127,11 @@ option( BUILD_OPENGL "Build the OpenGL module" ${BUILD_MODULES} ) ##### user requested sql modules option( BUILD_SQL "Build the sql module" ON ) -option( WITH_PSQL "Build with PostgreSQL support" ${BUILD_SQL} ) -option( WITH_MYSQL "Build with MySQL support" ${BUILD_SQL} ) -option( WITH_ODBC "Build with ODBC support" ${BUILD_SQL} ) -option( WITH_IBASE "Build with fbclient support" ${BUILD_SQL} ) -option( WITH_SQL3 "Build with SQLite3 support" ${BUILD_SQL} ) +option( WITH_PSQL "Build support for PostgreSQL" ${BUILD_SQL} ) +option( WITH_MYSQL "Build support for MySQL" ${BUILD_SQL} ) +option( WITH_ODBC "Build support for ODBC" ${BUILD_SQL} ) +option( WITH_IBASE "Build support for Firebird" ${BUILD_SQL} ) +option( WITH_SQL3 "Build support for SQLite3" ${BUILD_SQL} ) ##### tutorials @@ -154,6 +154,23 @@ option( BUILD_T14 "Build tutorial t14" ${BUILD_TUTO} ) option( BUILD_T15 "Build tutorial t15" ${BUILD_TUTO} ) +###### examples + +option( BUILD_EXAMPLE "Build the examples" ON ) +option( BUILD_ACLOCK "Build example aclock" ${BUILD_EXAMPLE} ) +option( BUILD_ACTION "Build example action" ${BUILD_EXAMPLE} ) +option( BUILD_ADDRESSBOOK "Build example addressbook" ${BUILD_EXAMPLE} ) +option( BUILD_APPLICATION "Build example application" ${BUILD_EXAMPLE} ) +option( BUILD_BIFF "Build example biff" ${BUILD_EXAMPLE} ) +option( BUILD_BUTTONGROUPS "Build example buttongroups" ${BUILD_EXAMPLE} ) +#option( BUILD_CANVAS "Build example canvas" ${BUILD_EXAMPLE} ) +option( BUILD_CHECKLISTS "Build example checklists" ${BUILD_EXAMPLE} ) +option( BUILD_CURSOR "Build example cursor" ${BUILD_EXAMPLE} ) +option( BUILD_CUSTOMLAYOUT "Build example customlayout" ${BUILD_EXAMPLE} ) +option( BUILD_DCLOCK "Build example dclock" ${BUILD_EXAMPLE} ) +#option( BUILD_DEMO "Build example demo" ${BUILD_EXAMPLE} ) + + ##### configure checks include( ConfigureChecks.cmake ) @@ -175,9 +192,10 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ##### directories add_subdirectory( src ) -tde_conditional_add_subdirectory( BUILD_TQMAKE qmake ) -tde_conditional_add_subdirectory( BUILD_TOOLS tools ) -tde_conditional_add_subdirectory( BUILD_TUTO tutorial ) +tde_conditional_add_subdirectory( BUILD_TQMAKE qmake ) +tde_conditional_add_subdirectory( BUILD_TOOLS tools ) +tde_conditional_add_subdirectory( BUILD_TUTO tutorial ) +tde_conditional_add_subdirectory( BUILD_EXAMPLE examples ) ##### write configure files diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 00000000..f2906cd0 --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1,15 @@ +tde_conditional_add_subdirectory( BUILD_ACLOCK aclock ) +tde_conditional_add_subdirectory( BUILD_ACTION action ) +tde_conditional_add_subdirectory( BUILD_ADDRESSBOOK addressbook ) +tde_conditional_add_subdirectory( BUILD_APPLICATION application ) +tde_conditional_add_subdirectory( BUILD_BIFF biff ) +tde_conditional_add_subdirectory( BUILD_BUTTONGROUPS buttongroups ) +tde_conditional_add_subdirectory( BUILD_CHECKLISTS checklists ) +tde_conditional_add_subdirectory( BUILD_CURSOR cursor ) +tde_conditional_add_subdirectory( BUILD_CUSTOMLAYOUT customlayout ) +tde_conditional_add_subdirectory( BUILD_DCLOCK dclock ) +tde_conditional_add_subdirectory( BUILD_DEMO demo ) +#tde_conditional_add_subdirectory( ) +#tde_conditional_add_subdirectory( ) +#tde_conditional_add_subdirectory( ) +#tde_conditional_add_subdirectory( BUILD_CANVAS canvas ) diff --git a/examples/aclock/CMakeLists.txt b/examples/aclock/CMakeLists.txt new file mode 100644 index 00000000..aad0e781 --- /dev/null +++ b/examples/aclock/CMakeLists.txt @@ -0,0 +1,19 @@ +include_directories( + ${CMAKE_BINARY_DIR}/include +) + +link_directories() + + +##### aclock (executable) + +tde_add_executable( aclock + + SOURCES + aclock.cpp + main.cpp + LINK + tqt-mt-shared +) + +tqt_automoc( aclock ) diff --git a/examples/action/CMakeLists.txt b/examples/action/CMakeLists.txt new file mode 100644 index 00000000..5f2bf4ad --- /dev/null +++ b/examples/action/CMakeLists.txt @@ -0,0 +1,22 @@ +add_subdirectory( toggleaction ) + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/include +) + +link_directories() + + +##### action (executable) + +tde_add_executable( action + + SOURCES + application.cpp + main.cpp + LINK + tqt-mt-shared +) + +tqt_automoc( action ) diff --git a/examples/action/toggleaction/CMakeLists.txt b/examples/action/toggleaction/CMakeLists.txt new file mode 100644 index 00000000..fe2e9762 --- /dev/null +++ b/examples/action/toggleaction/CMakeLists.txt @@ -0,0 +1,19 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/include +) + +link_directories() + + +##### toggleaction (executable) + +tde_add_executable( toggleaction + + SOURCES + toggleaction.cpp + LINK + tqt-mt-shared +) + +tqt_automoc( toggleaction ) diff --git a/examples/addressbook/CMakeLists.txt b/examples/addressbook/CMakeLists.txt new file mode 100644 index 00000000..baa5a933 --- /dev/null +++ b/examples/addressbook/CMakeLists.txt @@ -0,0 +1,21 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/include +) + +link_directories() + + +##### addressbook (executable) + +tde_add_executable( addressbook + + SOURCES + centralwidget.cpp + mainwindow.cpp + main.cpp + LINK + tqt-mt-shared +) + +tqt_automoc( addressbook ) diff --git a/examples/application/CMakeLists.txt b/examples/application/CMakeLists.txt new file mode 100644 index 00000000..2cc804a0 --- /dev/null +++ b/examples/application/CMakeLists.txt @@ -0,0 +1,20 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/include +) + +link_directories() + + +##### application(executable) + +tde_add_executable( application + + SOURCES + main.cpp + application.cpp + LINK + tqt-mt-shared +) + +tqt_automoc( application ) diff --git a/examples/biff/CMakeLists.txt b/examples/biff/CMakeLists.txt new file mode 100644 index 00000000..e3a8e201 --- /dev/null +++ b/examples/biff/CMakeLists.txt @@ -0,0 +1,20 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/include +) + +link_directories() + + +##### biff (executable) + +tde_add_executable( biff + + SOURCES + main.cpp + biff.cpp + LINK + tqt-mt-shared +) + +tqt_automoc( biff ) diff --git a/examples/buttongroups/CMakeLists.txt b/examples/buttongroups/CMakeLists.txt new file mode 100644 index 00000000..96c716e6 --- /dev/null +++ b/examples/buttongroups/CMakeLists.txt @@ -0,0 +1,20 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/include +) + +link_directories() + + +##### buttongroups (executable) + +tde_add_executable( buttongroups + + SOURCES + main.cpp + buttongroups.cpp + LINK + tqt-mt-shared +) + +tqt_automoc( buttongroups ) diff --git a/examples/canvas/CMakeLists.txt b/examples/canvas/CMakeLists.txt new file mode 100644 index 00000000..c13e56c4 --- /dev/null +++ b/examples/canvas/CMakeLists.txt @@ -0,0 +1,20 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/include +) + +link_directories() + + +##### canvas (executable) + +tde_add_executable( canvas + + SOURCES + main.cpp + canvas.cpp + LINK + tqt-mt-shared +) + +tqt_automoc( canvas ) diff --git a/examples/checklists/CMakeLists.txt b/examples/checklists/CMakeLists.txt new file mode 100644 index 00000000..a6a6703e --- /dev/null +++ b/examples/checklists/CMakeLists.txt @@ -0,0 +1,20 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/include +) + +link_directories() + + +##### checklists (executable) + +tde_add_executable( checklists + + SOURCES + main.cpp + checklists.cpp + LINK + tqt-mt-shared +) + +tqt_automoc( checklists ) diff --git a/examples/cursor/CMakeLists.txt b/examples/cursor/CMakeLists.txt new file mode 100644 index 00000000..2c46d941 --- /dev/null +++ b/examples/cursor/CMakeLists.txt @@ -0,0 +1,19 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/include +) + +link_directories() + + +##### cursor (executable) + +tde_add_executable( cursor + + SOURCES + cursor.cpp + LINK + tqt-mt-shared +) + +tqt_automoc( cursor ) diff --git a/examples/customlayout/CMakeLists.txt b/examples/customlayout/CMakeLists.txt new file mode 100644 index 00000000..acff454e --- /dev/null +++ b/examples/customlayout/CMakeLists.txt @@ -0,0 +1,22 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/include +) + +link_directories() + + +##### customlayout (executable) + +tde_add_executable( customlayout + + SOURCES + border.cpp + card.cpp + flow.cpp + main.cpp + LINK + tqt-mt-shared +) + +tqt_automoc( customlayout ) diff --git a/examples/dclock/CMakeLists.txt b/examples/dclock/CMakeLists.txt new file mode 100644 index 00000000..a0fb0f32 --- /dev/null +++ b/examples/dclock/CMakeLists.txt @@ -0,0 +1,20 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/include +) + +link_directories() + + +##### dclock (executable) + +tde_add_executable( dclock + + SOURCES + dclock.cpp + main.cpp + LINK + tqt-mt-shared +) + +tqt_automoc( dclock ) diff --git a/examples/demo/CMakeLists.txt b/examples/demo/CMakeLists.txt new file mode 100644 index 00000000..8fedb63a --- /dev/null +++ b/examples/demo/CMakeLists.txt @@ -0,0 +1,48 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/include +) + +link_directories() + + +##### demo (executable) + +tde_add_executable( demo + + SOURCES + frame.cpp + qthumbwheel.cpp + display.cpp + textdrawing/textedit.cpp + textdrawing/helpwindow.cpp + dnd/dnd.cpp + dnd/styledbutton.cpp + dnd/iconview.cpp + dnd/listview.cpp + i18n/i18n.cpp + ../aclock/aclock.cpp + main.cpp + dnd/dndbase.ui + graph.cpp + qasteroids/toplevel.cpp + qasteroids/view.cpp + qasteroids/ledmeter.cpp + opengl/glworkspace.cpp + opengl/glcontrolwidget.cpp + opengl/gltexobj.cpp + opengl/glbox.cpp + opengl/glgear.cpp + opengl/gllandscape.cpp + opengl/fbm.c + opengl/glinfo_x11.cpp + opengl/printpreview.ui + opengl/gllandscapeviewer.ui + sql/connect.ui + sql/sqlex.ui + widgets/widgetsbase.ui + LINK + tqt-mt-shared +) + +tqt_automoc( demo )