Skip to content

Commit

Permalink
Working build using CMake.
Browse files Browse the repository at this point in the history
Tested:
 - Visual Studio 2005
 - CMake 3.2.2

Still to-do:
 - WiX installer
 - Pageant download
 - Generate app_cast.xml
 - Generate setup_conf.xml
 - Generate swish/versions/metadata.h

Known issues:
 - Out-of-source builds have problem finding generated MIDL IID file.
  • Loading branch information
alamaison committed May 13, 2015
1 parent 8fddfab commit 3218072
Show file tree
Hide file tree
Showing 277 changed files with 2,787 additions and 20,513 deletions.
11 changes: 0 additions & 11 deletions .gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions .gitmodules

This file was deleted.

6 changes: 0 additions & 6 deletions AUTHORS

This file was deleted.

66 changes: 66 additions & 0 deletions CMakeLists.txt
@@ -0,0 +1,66 @@
# Copyright (C) 2015 Alexander Lamaison <swish@lammy.co.uk>
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA 02110-1301 USA.

cmake_minimum_required(VERSION 3.1)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)

# Package management ###########################################################

include(HunterGate)

HunterGate(
URL "https://github.com/alamaison/hunter/archive/ee83a15960b5d74098d8704bc9cf82ad8ec1734f.tar.gz"
SHA1 "d02301fee68f00198e7941129da446f80189017e"
LOCAL
)

################################################################################

project(swish)

#include(max_warnings)

include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/taskdialog98)

# Prevent Winsock errors and gives quicker builds
add_definitions(-DWIN32_LEAN_AND_MEAN)

# Currently required because not all Win32 calls use A or W form explicitly
add_definitions(-DUNICODE -D_UNICODE)

hunter_add_package(Boost
COMPONENTS filesystem system test date_time regex signals locale)

set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.40 REQUIRED
COMPONENTS filesystem date_time system regex signals thread locale)
add_definitions(-DBOOST_FILESYSTEM_VERSION=2)
if(MSVC)
add_definitions(-DBOOST_ALL_NO_LIB=1)
endif()
include_directories(${Boost_INCLUDE_DIRS})

add_subdirectory(ezel)
add_subdirectory(ssh)
add_subdirectory(swish)

option(BUILD_TESTING "Build test suite" ON)
if(BUILD_TESTING)
enable_testing()
add_subdirectory(test)
endif()
358 changes: 0 additions & 358 deletions Swish.sln

This file was deleted.

Binary file removed build/7za/7za.exe
Binary file not shown.
504 changes: 0 additions & 504 deletions build/7za/copying.txt

This file was deleted.

29 changes: 0 additions & 29 deletions build/7za/license.txt

This file was deleted.

41 changes: 0 additions & 41 deletions build/7za/readme.txt

This file was deleted.

16 changes: 0 additions & 16 deletions build/boost_client.vsprops

This file was deleted.

12 changes: 0 additions & 12 deletions build/boost_test_client.vsprops

This file was deleted.

13 changes: 0 additions & 13 deletions build/boost_test_runner.vsprops

This file was deleted.

11 changes: 0 additions & 11 deletions build/cppunit_client.vsprops

This file was deleted.

13 changes: 0 additions & 13 deletions build/cppunit_runner.vsprops

This file was deleted.

20 changes: 0 additions & 20 deletions build/libssh2_client.vsprops

This file was deleted.

35 changes: 0 additions & 35 deletions build/makeboost.bat

This file was deleted.

83 changes: 0 additions & 83 deletions build/makedist.bat

This file was deleted.

0 comments on commit 3218072

Please sign in to comment.