diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-17 20:16:55 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-17 20:16:55 +0000 |
| commit | 2d72446860abac08dc4f36b10fde7536f7897956 (patch) | |
| tree | 25dc114bb696bc8752d68e6e050da8d3dda5f282 /src/bin | |
| parent | 1cd73b4dadb8e618a0ec56289408922be42aac8a (diff) | |
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
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/CMakeLists.txt | 15 |
1 files changed, 8 insertions, 7 deletions
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) |
