Commit 66e37286 authored by Edlira Nano's avatar Edlira Nano
Browse files

changed win32 schema location

git-svn-id: https://subversion.renater.fr/masschroq/trunk@2077 e4b6dbb4-9209-464b-83f7-6257456c460c
parent b389e4c8
......@@ -33,9 +33,21 @@ ENDIF(CMAKE_BASE_NAME MATCHES "cl")
#ELSE (MINGW32)
#ENDIF(MINGW32)
if (NOT CMAKE_INSTALL_PREFIX)
SET (CMAKE_INSTALL_PREFIX /usr/local)
endif (NOT CMAKE_INSTALL_PREFIX)
SET(CMAKE_BUILD_TYPE "Release")
#SET(CMAKE_BUILD_TYPE "Debug")
#SET(CMAKE_BUILD_TYPE "RelWithDebInfo")
#SET( CMAKE_BUILD_TYPE "Release")
IF (CMAKE_INSTALL_PREFIX MATCHES "/usr/local")
SET( CMAKE_BUILD_TYPE "Debug")
#SET(CMAKE_BUILD_TYPE "RelWithDebInfo")
#SET( CMAKE_BUILD_TYPE "Release")
ENDIF (CMAKE_INSTALL_PREFIX MATCHES "/usr/local")
IF(CMAKE_BUILD_TYPE MATCHES "Release")
MESSAGE("compiling as release version")
......@@ -50,24 +62,27 @@ IF(CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo")
MESSAGE("compiling as release with debug info version")
ENDIF( CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo" )
IF (WIN32)
SET(MASSCHROQ_XSD ./masschroq.xsd)
SET(MASSCHROQ_XSD_DIR ${CMAKE_INSTALL_PREFIX})
SET(MASSCHROQ_XSD ${MASSCHROQ_XSD_DIR}/masschroq.xsd)
#SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
ELSE (WIN32)
SET (CMAKE_CXX_FLAGS_RELEASE "-s ${CMAKE_CXX_FLAGS_RELEASE}")
SET(MASSCHROQ_XSD ${CMAKE_INSTALL_PREFIX}/share/xml/schema/masschroq.xsd)
ENDIF(WIN32)
SET(CMAKE_CXX_FLAGS_DEBUG "-O3 -g -Wall")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -Wall")
SET (CMAKE_CXX_FLAGS_RELEASE "-s ${CMAKE_CXX_FLAGS_RELEASE}")
SET(MASSCHROQ_XSD_DIR ${CMAKE_INSTALL_PREFIX}/share/xml/schema)
SET(MASSCHROQ_XSD ${MASSCHROQ_XSD_DIR}/masschroq.xsd)
SET(CMAKE_CXX_FLAGS_DEBUG "-O3 -g -Wall")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -Wall")
ENDIF (WIN32)
SET (MASSCHROQ_VERSION "1.0")
SET (MASSCHROQ_XML_VERSION "1.0")
if (NOT CMAKE_INSTALL_PREFIX)
SET (CMAKE_INSTALL_PREFIX /usr/local)
endif (NOT CMAKE_INSTALL_PREFIX)
SET(CPACK_CMAKE_GENERATOR "Unix Makefiles")
SET(CPACK_GENERATOR "STGZ;TGZ;TZ")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment