Skip to content

Commit

Permalink
Merge pull request #112 from lidaobing/issue_97
Browse files Browse the repository at this point in the history
Issue 97
  • Loading branch information
lidaobing committed Jan 24, 2018
2 parents 8698aeb + 6a50ea3 commit de62443
Show file tree
Hide file tree
Showing 52 changed files with 23 additions and 14 deletions.
Empty file modified ChangeLog
100755 → 100644
Empty file.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 0.7.4 (2018-XX-XX)

* [#?] fix bug in save share management.
* [#97] don't download googletest if already installed.

# 0.7.3 (2018-01-20)

Expand Down
Empty file modified desktop/hicolor/16x16/apps/iptux-i.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified desktop/hicolor/16x16/apps/iptux.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified desktop/hicolor/22x22/apps/iptux-i.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified desktop/hicolor/22x22/apps/iptux.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified desktop/hicolor/24x24/apps/iptux-i.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified desktop/hicolor/24x24/apps/iptux.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified desktop/hicolor/32x32/apps/iptux-i.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified desktop/hicolor/32x32/apps/iptux.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified desktop/hicolor/48x48/apps/iptux-i.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified desktop/hicolor/48x48/apps/iptux.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified desktop/hicolor/64x64/apps/iptux-i.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified desktop/hicolor/64x64/apps/iptux.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified desktop/iptux.desktop
100755 → 100644
Empty file.
Empty file modified pixmaps/icon/icon-blowfish.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified pixmaps/icon/icon-bug.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified pixmaps/icon/icon-cow.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified pixmaps/icon/icon-daemon.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified pixmaps/icon/icon-dog.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified pixmaps/icon/icon-elephant.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified pixmaps/icon/icon-frog.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified pixmaps/icon/icon-ghost.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified pixmaps/icon/icon-konqui.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified pixmaps/icon/icon-lion.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified pixmaps/icon/icon-monkey.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified pixmaps/icon/icon-penguin.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified pixmaps/icon/icon-pig.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified pixmaps/icon/icon-qq.png
100755 → 100644
Empty file modified pixmaps/icon/icon-rabbit.png
100755 → 100644
Empty file modified pixmaps/icon/icon-scream.png
100755 → 100644
Empty file modified pixmaps/icon/icon-teddybear.png
100755 → 100644
Empty file modified pixmaps/icon/icon-turtle.png
100755 → 100644
Empty file modified pixmaps/icon/icon-tux.png
100755 → 100644
Empty file modified pixmaps/menu/menu-board.png
100755 → 100644
Empty file modified pixmaps/menu/menu-detect.png
100755 → 100644
Empty file modified pixmaps/menu/menu-group.png
100755 → 100644
Empty file modified pixmaps/menu/menu-share.png
100755 → 100644
Empty file modified pixmaps/tip/tip-error.png
100755 → 100644
Empty file modified pixmaps/tip/tip-finish.png
100755 → 100644
Empty file modified pixmaps/tip/tip-hide.png
100755 → 100644
Empty file modified pixmaps/tip/tip-recv.png
100755 → 100644
Empty file modified pixmaps/tip/tip-send.png
100755 → 100644
Empty file modified pixmaps/tip/tip-show.png
100755 → 100644
Empty file modified po/ChangeLog
100755 → 100644
Empty file.
Empty file modified po/LINGUAS
100755 → 100644
Empty file.
Empty file modified po/POTFILES.in
100755 → 100644
Empty file.
Empty file modified protocol
100755 → 100644
Empty file.
Empty file modified sound/msg.ogg
100755 → 100644
Empty file.
Empty file modified sound/trans.ogg
100755 → 100644
Empty file.
29 changes: 16 additions & 13 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
configure_file(googletest-download/CMakeLists.txt.in googletest-download/CMakeLists.txt)
execute_process(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/src/googletest-download" )
execute_process(COMMAND "${CMAKE_COMMAND}" --build .
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/src/googletest-download" )
find_package(GTest)
if(NOT GTEST_FOUND)
configure_file(googletest-download/CMakeLists.txt.in googletest-download/CMakeLists.txt)
execute_process(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/src/googletest-download" )
execute_process(COMMAND "${CMAKE_COMMAND}" --build .
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/src/googletest-download" )


# Prevent GoogleTest from overriding our compiler/linker options
# when building with Visual Studio
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
# Prevent GoogleTest from overriding our compiler/linker options
# when building with Visual Studio
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)

# Add googletest directly to our build. This adds
# the following targets: gtest, gtest_main, gmock
# and gmock_main
add_subdirectory("${CMAKE_BINARY_DIR}/src/googletest-src"
"${CMAKE_BINARY_DIR}/src/googletest-build")
# Add googletest directly to our build. This adds
# the following targets: gtest, gtest_main, gmock
# and gmock_main
add_subdirectory("${CMAKE_BINARY_DIR}/src/googletest-src"
"${CMAKE_BINARY_DIR}/src/googletest-build")
endif()
add_subdirectory(iptux)
add_subdirectory(main)
7 changes: 6 additions & 1 deletion src/iptux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,10 @@ add_executable(libiptux_test
UtilsTest.cpp
TestMain.cpp
)
target_link_libraries(libiptux_test gtest iptux)
if(GTEST_FOUND)
include_directories(${GTEST_INCLUDE_DIRS})
target_link_libraries(libiptux_test ${GTEST_BOTH_LIBRARIES} iptux pthread)
else()
target_link_libraries(libiptux_test gtest iptux)
endif()
add_test(NAME libiptux_test COMMAND libiptux_test)

0 comments on commit de62443

Please sign in to comment.