//std::string datadir( crea::wx2std(GetExecutablePath()) );
std::string datadir( GetExecutablePath() );
//JCP
+
+ #ifdef LINUX /* assume this is OSX */
+ datadir=datadir+"/../share/creaContours";
+ #endif // MACOSX
#ifdef MACOSX /* assume this is OSX */
- datadir=datadir+"/../../..";
+ datadir=datadir+"/../../../../share/creaContours";
#endif // MACOSX
ENDIF(WIN32)
SET(FILE_NAME_DESCRIPTOR "creaContours_Descriptor.dscp")
-CONFIGURE_FILE( ${PROJECT_SOURCE_DIR}/data/${FILE_NAME_DESCRIPTOR} ${PROJECT_BINARY_DIR}/bin/Shared/gimmick/${FILE_NAME_DESCRIPTOR} COPYONLY )
-INSTALL( FILES ${PROJECT_SOURCE_DIR}/data/${FILE_NAME_DESCRIPTOR} DESTINATION bin/Shared/gimmick )
+CONFIGURE_FILE( ${PROJECT_SOURCE_DIR}/data/gimmick/${FILE_NAME_DESCRIPTOR} ${PROJECT_BINARY_DIR}/bin/shared/gimmick/${FILE_NAME_DESCRIPTOR} COPYONLY )
IF (WIN32)
- SET(INSTALL_DATA_DIR "bin/Share/gimmick")
+ SET(INSTALL_DATA_DIR "bin/share/gimmick")
ELSE (WIN32)
SET(INSTALL_DATA_DIR "share/gimmick/")
ENDIF (WIN32)