From e802b6dfe8ef0105389b69e17e7faa2e4c92d756 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 23 Dec 2008 07:38:22 +0000 Subject: Some more Windows fixes, both in CMake and in the code itself. (I don't like the const casting for the latter, but it's only until we get rid of use of strchr) Added CPack setup to automate generation of source package for *nix and NSIS installer for Windows. Some other minor CMake fixes. Converted docs/README and docs/WIN32.txt from Unix linefeeds to DOS linefeeds so they show up right in Notepad under Windows. Added small fix for Visual Studio 2008, CMake doesn't detect the Express version correctly and it must be explicitly defined. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1861 5417fbe8-f217-4b02-8779-1006273d7864 --- src/bin/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/bin') diff --git a/src/bin/CMakeLists.txt b/src/bin/CMakeLists.txt index 99a7e5136..34044ddf9 100644 --- a/src/bin/CMakeLists.txt +++ b/src/bin/CMakeLists.txt @@ -2,9 +2,13 @@ if(NOT WIN32) configure_file(${Anope_SOURCE_DIR}/src/bin/anoperc.cmake ${Anope_BINARY_DIR}/src/bin/anoperc) install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/anoperc - DESTINATION "${INSTDIR}" + DESTINATION . ) + if(IN_SOURCE) + # Add anoperc to list of files for CPack to ignore + add_to_cpack_ignored_files("anoperc$") + endif(IN_SOURCE) install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/mydbgen - DESTINATION "${DATADIR}" + DESTINATION data ) endif(NOT WIN32) -- cgit