Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (37 sloc) 1.27 KB
PROJECT (SYMDIFF CXX)
OPTION(TCLMAIN "Build with TCL Interpreter" ON)
#Python 2 version is always build
OPTION(PYTHON3 "Build Python 3 Interpreter" OFF)
set (CMAKE_CXX_STANDARD 14)
SET (SUBDIRS
src
testing
)
# superlu stuff
SITE_NAME(HOSTNAME)
MESSAGE("Hostname: ${HOSTNAME}")
ADD_DEFINITIONS(-DSYMDIFF_VERSION_STRING="\\"0.00\\"" -DSYMDIFF_COPYRIGHT_YEAR="\\"2010\\"")
OPTION(TCLMAIN "Build with TCL Interpreter" ON)
set(PROJECT_BIN_DIR ${PROJECT_SOURCE_DIR}/bin)
set(PROJECT_SCRIPTS_DIR ${PROJECT_SOURCE_DIR}/scripts)
set(PROJECT_LIBRARY_DIR ${PROJECT_SOURCE_DIR}/lib)
set(PROJECT_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
#TODO: put these in the individual setup scripts
IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
ADD_DEFINITIONS(-Wall -DTCL_THREADS -DUSE_TCL_STUBS -fvisibility=hidden)
#SET(CMAKE_SKIP_BUILD_RPATH TRUE)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
IF (APPLE)
ADD_DEFINITIONS(-Wall -DTCL_THREADS -DUSE_TCL_STUBS -fvisibility=hidden)
#SET (CMAKE_INSTALL_NAME_DIR "@rpath")
SET(CMAKE_SKIP_BUILD_RPATH TRUE)
ENDIF(APPLE)
SET (FLEX flex)
SET (DIFF diff)
SET (BISON bison)
INCLUDE(${SYMDIFF_CONFIG}.cmake OPTIONAL)
ENABLE_TESTING()
FOREACH (SUB ${SUBDIRS})
ADD_SUBDIRECTORY(${SUB})
ENDFOREACH (SUB ${SUBDIRS})