diff --git a/.travis.yml b/.travis.yml index 5bce9547..d596ff49 100644 --- a/.travis.yml +++ b/.travis.yml @@ -76,4 +76,25 @@ script: - cmake -G"Unix Makefiles" .. -DNANA_CMAKE_ENABLE_JPEG=ON -DNANA_CMAKE_ENABLE_PNG=OFF -DNANA_CMAKE_BUILD_DEMOS=ON -DNANA_CMAKE_ENABLE_AUDIO=OFF -DNANA_CMAKE_FIND_BOOST_FILESYSTEM=ON -DNANA_CMAKE_INCLUDE_EXPERIMENTAL_DEMOS=OFF -DNANA_CMAKE_AUTOMATIC_GUI_TESTING=ON -DNANA_CMAKE_ADD_DEF_AUTOMATIC_GUI_TESTING=ON - make - ls + - ./clicked + - ./HelloWord + - ./background-effects + - ./categ + - ./decore + - ./dock + - ./drag-button + - ./draw + - ./file_explorer + #- ./example_menu + - ./example_listbox + #- ./example_combox + #- ./example.button + #- ./MontiHall + - ./a_group_impl + #- ./animate-bmp + #- ./calculator + #- ./helloworld_demo + #- ./notepad + + diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b26d32f..5fc96b22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ option(NANA_CMAKE_BOOST_FILESYSTEM_FORCE "Force use of Boost filesystem if avail #option(NANA_CMAKE_BOOST_FILESYSTEM_INCLUDE_ROOT "Where to find ?" "../") #option(NANA_CMAKE_BOOST_FILESYSTEM_LIB "Flag for the compiler to link: " "-lboost/fs") #include_directories("${NANA_CMAKE_BOOST_FILESYSTEM_INCLUDE_ROOT}") -#list(APPEND NANA_LINKS "${NANA_CMAKE_BOOST_FILESYSTEM_LIB}") +#list(APPEND NANA_LINKS "${NANA_CMAKE_BOOST_FILESYSTEM_LIB}" ) if (NANA_CMAKE_NANA_FILESYSTEM_FORCE) @@ -181,18 +181,6 @@ if (NANA_CMAKE_BUILD_FreeMe) add_definitions(-DBUILD_FreeMe) endif (NANA_CMAKE_BUILD_FreeMe) - -if(NANA_CMAKE_AUTOMATIC_GUI_TESTING) - add_definitions(-DNANA_AUTOMATIC_GUI_TESTING) - - if(NANA_CMAKE_ADD_DEF_AUTOMATIC_GUI_TESTING) - add_definitions(-DNANA_ADD_DEF_AUTOMATIC_GUI_TESTING) - endif(NANA_CMAKE_ADD_DEF_AUTOMATIC_GUI_TESTING) - -endif(NANA_CMAKE_AUTOMATIC_GUI_TESTING) - - - if(NANA_CMAKE_VERBOSE_PREPROCESSOR) add_definitions(-DVERBOSE_PREPROCESSOR) endif(NANA_CMAKE_VERBOSE_PREPROCESSOR) @@ -265,7 +253,7 @@ if (NANA_CMAKE_BUILD_DEMOS) add_definitions(-DNANA_ADD_DEF_AUTOMATIC_GUI_TESTING) endif(NANA_CMAKE_ADD_DEF_AUTOMATIC_GUI_TESTING) - set (demos helloworld_demo notepad ) + set (demos calculator file_explorer helloworld_demo notepad ) foreach ( demo ${demos}) add_executable(${demo} "../nana-demo/${demo}.cpp") @@ -274,16 +262,16 @@ if (NANA_CMAKE_BUILD_DEMOS) #if(NANA_CMAKE_AUTOMATIC_GUI_TESTING) #add_custom_command( TARGET ${demo} POST_BUILD COMMAND ${demo} ) #add_custom_target(do_always_${demo} ALL COMMAND ${demo}) - add_test(${demo} COMMAND ${demo}) + #add_test(${demo} COMMAND ${demo}) #endif(NANA_CMAKE_AUTOMATIC_GUI_TESTING) install(TARGETS ${demo} RUNTIME DESTINATION "../nana-demo/") message("... to build: ../nana-demo/${demo}.cpp" ) endforeach( demo ${demos}) - set (demos calculator widget_show widget_show2 ) + set (demos widget_show widget_show2 ) if (NANA_CMAKE_INCLUDE_EXPERIMENTAL_DEMOS) - list(APPEND demos file_explorer FreeMe) + list(APPEND demos file_explorer FreeMe) # ?? endif (NANA_CMAKE_INCLUDE_EXPERIMENTAL_DEMOS) # Pending: FreeMe (added but really completelly compiled if defined BUILD_FreeMe ) @@ -300,7 +288,7 @@ if (NANA_CMAKE_BUILD_DEMOS) decore dock drag-button draw example.button example_combox example_listbox example_menu filebox-txt folder_tree folder_tree_nana folder_tree_std framework_design_1 framework_design_2 framework_design_3 group HelloWord helloword_quit inputbox label_listener lambda_event.Cpp11 listbox_inline_widget listbox_Resolver loader_1 loader_2 - mbox menu_debug menu_popuper modal_form MontiHall place_login png screen stretch_image + main mbox menu_debug menu_popuper modal_form MontiHall place_login png screen stretch_image threading thread-pool various_events window-dragger windows-subclassing ) # Pending: