diff options
author | click <none@none> | 2010-08-09 05:22:58 +0200 |
---|---|---|
committer | click <none@none> | 2010-08-09 05:22:58 +0200 |
commit | 6729518dbb77c94ec610b15061660e565bcbcc19 (patch) | |
tree | d472c72d1edbaa7b4a2a0e27d1d75f9201ec6adf /src | |
parent | fa8a82665602abbd172d0143877eeaf293ccf0cd (diff) |
Buildsytem/All: Clean up main CMakeLists.txt a tad bit
- Move genrevision subproject into own folder to avoid clutter (less junk)
- Make options a bit more understandable (for CMake GUI)
- Arrange CMakeLists.txt actions into subsections so it's easier to understand
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/genrevision/CMakeLists.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/genrevision/CMakeLists.txt b/src/genrevision/CMakeLists.txt new file mode 100644 index 00000000000..4539d1bdca4 --- /dev/null +++ b/src/genrevision/CMakeLists.txt @@ -0,0 +1,33 @@ +# Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/> +# +# This file is free software; as a special exception the author gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +set(GENREV_SRC + genrevision.cpp +) +add_executable(genrev + ${GENREV_SRC} +) + +if( CMAKE_GENERATOR MATCHES "Visual Studio" ) + add_custom_target("revision.h" ALL + COMMAND "${CMAKE_BINARY_DIR}/bin/$(ConfigurationName)/genrev" + ${CMAKE_SOURCE_DIR} + WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" + DEPENDS genrev + ) +else() + add_custom_target("revision.h" ALL + COMMAND "${CMAKE_BINARY_DIR}/genrev" + ${CMAKE_SOURCE_DIR} + WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" + DEPENDS genrev + ) +endif() + |