
SET(SOLARSYSTEMEDITOR_MAJOR "0")
SET(SOLARSYSTEMEDITOR_MINOR "0")
SET(SOLARSYSTEMEDITOR_PATCH "1")
SET(SOLARSYSTEMEDITOR_VERSION "${SOLARSYSTEMEDITOR_MAJOR}.${SOLARSYSTEMEDITOR_MINOR}.${SOLARSYSTEMEDITOR_PATCH}")

IF(APPLE)
	SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/Library/Application\ Support/Stellarium)
ElSE(APPLE)
	SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/.stellarium)
ENDIF(APPLE)

ADD_DEFINITIONS(-DPLUGIN_VERSION="${SOLARSYSTEMEDITOR_VERSION}")

ADD_SUBDIRECTORY( src )

INSTALL(FILES DESTINATION "modules/SolarSystemEditor")


