From 7829b181198fe062881f63b3b4d0895c6fb67bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Pereira?= Date: Wed, 1 Mar 2017 12:55:19 +0000 Subject: [PATCH] Renames test app to example. Make it work test is a reserved name. Adapt it to match the changes done. src directory renamed to example. src was a misleading name. --- CMakeLists.txt | 18 ++++++++---------- {src => example}/README | 0 {src => example}/main.cpp | 0 3 files changed, 8 insertions(+), 10 deletions(-) rename {src => example}/README (100%) rename {src => example}/main.cpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index b6c1ea0..3538d3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ include(CheckFunctionExists) set(LXQTBT_MINIMUM_VERSION "0.3.0") -option(BUILD_TEST "Build test application. Default OFF." OFF) +option(BUILD_EXAMPLE "Build example application. Default OFF." OFF) # just change version for releases set(QTERMWIDGET_VERSION_MAJOR "0") set(QTERMWIDGET_VERSION_MINOR "7") @@ -245,15 +245,13 @@ install(FILES ${QTERMWIDGET_QM} DESTINATION ${TRANSLATIONS_DIR}) # end of main library -# test application -if(BUILD_TEST) - set(TEST_SRC src/main.cpp) - add_executable(test ${TEST_SRC}) - add_dependencies(test ${QTERMWIDGET_LIBRARY_NAME}) - link_directories(${CMAKE_BINARY_DIR}) - target_link_libraries(test ${QTERMWIDGET_QT_LIBRARIES} ${QTERMWIDGET_LIBRARY_NAME} util) -endif (BUILD_TEST) -# end of test application +# example application +if(BUILD_EXAMPLE) + set(EXAMPLE_SRC example/main.cpp) + add_executable(example ${EXAMPLE_SRC}) + target_link_libraries(example ${QTERMWIDGET_LIBRARY_NAME}) +endif() +# end of example application CONFIGURE_FILE( diff --git a/src/README b/example/README similarity index 100% rename from src/README rename to example/README diff --git a/src/main.cpp b/example/main.cpp similarity index 100% rename from src/main.cpp rename to example/main.cpp