compilation

This commit is contained in:
Christophe Alexandre 2008-05-06 13:02:19 +00:00
parent 59751be544
commit 40c410cabf
6 changed files with 15 additions and 18 deletions

View File

@ -8,9 +8,6 @@ FIND_PACKAGE(BISON REQUIRED)
FIND_PACKAGE(FLEX REQUIRED) FIND_PACKAGE(FLEX REQUIRED)
FIND_PACKAGE(HURRICANE REQUIRED) FIND_PACKAGE(HURRICANE REQUIRED)
FIND_PACKAGE(CORIOLIS REQUIRED) FIND_PACKAGE(CORIOLIS REQUIRED)
#FIND_PACKAGE(Doxygen) FIND_PACKAGE(LibXml2 REQUIRED)
ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(src)
#IF(DOXYGEN_FOUND)
# ADD_SUBDIRECTORY(doc)
#ENDIF(DOXYGEN_FOUND)

View File

@ -4,7 +4,7 @@
#include "Technology.h" #include "Technology.h"
using namespace Hurricane; using namespace Hurricane;
#include "TechnologyXmlParser.h" #include "ATechnologyXmlParser.h"
namespace { namespace {

View File

@ -1,5 +1,5 @@
#ifndef TECHNOLOGYXMLPARSER_H_ #ifndef ATECHNOLOGYXMLPARSER_H_
#define TECHNOLOGYXMLPARSER_H_ #define ATECHNOLOGYXMLPARSER_H_
namespace Hurricane { namespace Hurricane {
class Technology; class Technology;
@ -7,9 +7,9 @@ namespace Hurricane {
class ATechnology; class ATechnology;
class TechnologyXmlParser { class ATechnologyXmlParser {
public: public:
static ATechnology* parseTechnologyFromXml(const char* filePath, Hurricane::Technology* technology); static ATechnology* parseTechnologyFromXml(const char* filePath, Hurricane::Technology* technology);
}; };
#endif /*TECHNOLOGYXMLPARSER_H_*/ #endif /*ATECHNOLOGYXMLPARSER_H_*/

View File

@ -1,7 +1,7 @@
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${HURRICANE_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${HURRICANE_INCLUDE_DIR})
ADD_LIBRARY(atechnology SHARED ADD_LIBRARY(atechnology SHARED
ATechnology.cpp TechnologyXmlParser.cpp) AEnv.cpp ATechnology.cpp ATechnologyXmlParser.cpp)
TARGET_LINK_LIBRARIES(atechnology ${HURRICANE_LIBRARIES} ${LIBXML2_LIBRARIES}) TARGET_LINK_LIBRARIES(atechnology ${HURRICANE_LIBRARIES} ${LIBXML2_LIBRARIES})

View File

@ -3,8 +3,7 @@
#include "Warning.h" #include "Warning.h"
using namespace Hurricane; using namespace Hurricane;
#include "crlcore/CDataBase.h" #include "AEnv.h"
using namespace CRL;
#include "TrMos.h" #include "TrMos.h"
using namespace DEVICE; using namespace DEVICE;
@ -12,9 +11,10 @@ using namespace DEVICE;
int main() { int main() {
try { try {
cout << "simple analogic test" << endl; cout << "simple analogic test" << endl;
CDataBase* db = CDataBase::create(); //CDataBase* db = CDataBase::create();
Library* workLibrary = Library::create(db->getRootLibrary(), Name("WorkLibrary")); //Library* workLibrary = Library::create(db->getRootLibrary(), Name("WorkLibrary"));
TrMos* trmos = TrMos::create(workLibrary, Name("MosTr")); //TrMos* trmos = TrMos::create(workLibrary, Name("MosTr"));
AEnv::create("toto");
exit(0); exit(0);
} catch (Hurricane::Warning& w) { } catch (Hurricane::Warning& w) {
cerr << w.what() << endl; cerr << w.what() << endl;

View File

@ -1,9 +1,9 @@
INCLUDE_DIRECTORIES(${HURRICANE_INCLUDE_DIR} ${CORIOLIS_INCLUDE_DIR} INCLUDE_DIRECTORIES(${HURRICANE_INCLUDE_DIR} ${CORIOLIS_INCLUDE_DIR}
${CHAMSIN_SOURCE_DIR}/src/technology
${CHAMSIN_SOURCE_DIR}/src/analogic ${CHAMSIN_SOURCE_DIR}/src/device) ${CHAMSIN_SOURCE_DIR}/src/analogic ${CHAMSIN_SOURCE_DIR}/src/device)
ADD_EXECUTABLE(atest AnalogicTest.cpp) ADD_EXECUTABLE(atest AnalogicTest.cpp)
TARGET_LINK_LIBRARIES(atest analogic device ${HURRICANE_LIBRARIES} TARGET_LINK_LIBRARIES(atest atechnology ${HURRICANE_LIBRARIES})
${CORIOLIS_LIBRARIES})
INSTALL(TARGETS atest DESTINATION /bin) INSTALL(TARGETS atest DESTINATION /bin)