1 cmake_minimum_required(VERSION 2.6)
4 macro (get_gcc_version version)
5 if (CMAKE_COMPILER_IS_GNUCC)
6 exec_program( ${SYLPH_SOURCE_DIR}/gccver.sh ARGS ${CMAKE_CXX_COMPILER} OUTPUT_VARIABLE ${version})
7 endif(CMAKE_COMPILER_IS_GNUCC)
8 endmacro (get_gcc_version)
10 get_gcc_version ( S_GCC_VERSION )
12 if ( NOT CMAKE_COMPILER_IS_GNUCC OR S_GCC_VERSION STRLESS "4.4.0" )
13 message ( FATAL_ERROR "Your compiler does not support C++0x. Please install
14 a compliant compiler. G++ > 4.4.0 supports the required
15 constructs. Use the -DCMAKE_CXX_COMPILER flag to set a compiler." )
16 endif ( NOT CMAKE_COMPILER_IS_GNUCC OR S_GCC_VERSION STRLESS "4.4.0" )
18 if ( UNIX AND NOT APPLE )
19 set(SYLPH_INCLUDE ${SYLPH_SOURCE_DIR}/deps/binreloc)
20 set(SYLPH_LINK_DIR ${SYLPH_SOURCE_DIR}/deps/binreloc)
21 set(SYLPH_LINK binreloc)
22 endif ( UNIX AND NOT APPLE )
24 set(SYLPH_ALL_DEPS ${SYLPH_LINK} gc icuuc)
26 add_subdirectory(deps/binreloc)
28 add_subdirectory(test)
30 configure_file( bin/sylphparams.in bin/sylphparams )
32 install( PROGRAMS ${SYLPH_BINARY_DIR}/bin/sylphparams DESTINATION bin )