* CMake: added txt-converter targets, added warning for 64bit, added list of available targets.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14900 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
flaviojs
2011-07-10 23:46:51 +00:00
parent 7fe7c8d9cb
commit 334afd6cf6
16 changed files with 393 additions and 184 deletions

View File

@@ -125,6 +125,13 @@ if( Subversion_FOUND AND SVNVERSION )
endif()
#
# 3rdparty
#
add_subdirectory( 3rdparty )
#####################################################################
# package stuff
#
@@ -283,7 +290,25 @@ endif()
#
# subdirectories
# sources
#
add_subdirectory( 3rdparty )
set( TARGET_LIST CACHE INTERNAL "" )
add_subdirectory( src )
#####################################################################
# final checks and warnings
#
if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
message( WARNING "64bit should work, but is not recommended." )
elseif( NOT CMAKE_SIZEOF_VOID_P EQUAL 4 )
message( FATAL_ERROR "unexpected architecture (CMAKE_SIZEOF_VOID_P=${CMAKE_SIZEOF_VOID_P})" )
endif()
list( LENGTH TARGET_LIST _LEN )
if( _LEN EQUAL 0 )
message( FATAL_ERROR "no targets available" )
endif()
message( STATUS "Available targets:" )
foreach( _TARGET IN ITEMS ${TARGET_LIST} )
message( STATUS "\t${_TARGET}" )
endforeach()