git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6955
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
### Enable tests
+INCLUDE(CTestConfig.cmake)
ENABLE_TESTING()
INCLUDE(CTest)
INCLUDE(Dart)
-
-INCLUDE(CTestCustom.ctest)
INCLUDE(CTestList.txt)
# Install the CTest configuration in the build dir
-configure_file(CTestCustom.ctest ${CMAKE_BINARY_DIR}/CTestCustom.ctest
-COPYONLY)
+configure_file(CTestConfig.cmake ${CMAKE_BINARY_DIR}/CTestCustom.ctest COPYONLY)
#SET (CMAKE_COMPILER_IS_GNUCXX 1)
#SET (CMAKE_COMPILER_IS_GNUCC 1)
endmacro(getuname)
MARK_AS_ADVANCED(UNAME)
-if(${CMAKE_SYSTEM_NAME} STREQUAL "darwin")
+if(CMAKE_SYSTEM_NAME STREQUAL "darwin")
SET(DISTRIB2 "OSX")
-else(${CMAKE_SYSTEM_NAME} STREQUAL "darwin")
+else(CMAKE_SYSTEM_NAME STREQUAL "darwin")
#Try to get the distrib
find_program(CAT NAMES cat)
exec_program("${CAT}" ARGS " /etc/issue" OUTPUT_VARIABLE DISTRIB)
MARK_AS_ADVANCED(CAT)
STRING(REPLACE "\\n \\l" "" DISTRIB2 ${DISTRIB})
-endif(${CMAKE_SYSTEM_NAME} STREQUAL "darwin")
+endif(CMAKE_SYSTEM_NAME STREQUAL "darwin")
getuname(osname -s)
getuname(node -n)