From 2d72446860abac08dc4f36b10fde7536f7897956 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Wed, 17 Dec 2008 20:16:55 +0000 Subject: More CMake work, mostly to handle both *nix and Windows builds. Also some tweaks to generation files (like version.sh) to take both input and output files as arguments, to handle CMake when it's used for an out-of-source build. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1836 5417fbe8-f217-4b02-8779-1006273d7864 --- src/bin/CMakeLists.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/bin') diff --git a/src/bin/CMakeLists.txt b/src/bin/CMakeLists.txt index 7aa28c1cd..b587479c6 100644 --- a/src/bin/CMakeLists.txt +++ b/src/bin/CMakeLists.txt @@ -1,8 +1,9 @@ -install(PROGRAMS anoperc - DESTINATION "${BINDIR}" -) -install(PROGRAMS mydbgen - DESTINATION "${DATADIR}" -) - +if(NOT WIN32) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/anoperc + DESTINATION "${BINDIR}" + ) + install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/mydbgen + DESTINATION "${DATADIR}" + ) +endif(NOT WIN32) -- cgit