From 9cf2cf43c83551a7d0d5cb32e6e6b56adf2eb9a4 Mon Sep 17 00:00:00 2001
From: Vincent Hardion <vincent.hardion@synchrotron-soleil.fr>
Date: Tue, 7 Jul 2009 08:48:27 +0000
Subject: [PATCH] add system include path and lib

---
 pom.xml | 114 +++++++++++++++++++++++++++++++++++---------------------
 1 file changed, 72 insertions(+), 42 deletions(-)

diff --git a/pom.xml b/pom.xml
index 7261e23..bc60bc7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,29 +1,57 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <groupId>fr.soleil</groupId>
-    <artifactId>super-pom-C-CPP-device</artifactId>
-    <version>RELEASE</version>
-  </parent>
-  <groupId>fr.soleil.device</groupId>
-  <artifactId>ContinuousAO-${aol}-${mode}</artifactId>
-  <version>1.0.1-SNAPSHOT</version>
-  <packaging>nar</packaging>
-  <name>ContinuousAO</name>
-<!-- use for the name of executable -->
-  <description>ContinuousAO device</description>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.freehep</groupId>
-        <artifactId>freehep-nar-plugin</artifactId>
-        <configuration>
-          <os>Windows</os>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>fr.soleil</groupId>
+        <artifactId>super-pom-C-CPP-device</artifactId>
+        <version>RELEASE</version>
+    </parent>
+
+    <groupId>fr.soleil.device</groupId>
+    <artifactId>ContinuousAO-${aol}-${mode}</artifactId>
+    <version>1.0.1-SNAPSHOT</version>
+
+    <packaging>nar</packaging>
+    <name>ContinuousAO</name> <!-- use for the name of executable -->
+    <description>ContinuousAO device</description>
+    
+    <properties>
+        <D2KDASK_ROOT>${env.D2KDASK_ROOT}</D2KDASK_ROOT>
+        <PCISDASK_ROOT>${env.PCISDASK_ROOT}</PCISDASK_ROOT>
+    </properties>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.freehep</groupId>
+                <artifactId>freehep-nar-plugin</artifactId>
+                <configuration>
+                    <os>Windows</os>
+                    <cpp>
+                        <systemIncludePaths>
+                            <systemIncludePath>${D2KDASK_ROOT}/Include</systemIncludePath>
+                            <systemIncludePath>${PCISDASK_ROOT}/Include</systemIncludePath>
+                        </systemIncludePaths>
+                    </cpp>
+                    <linker>
+                        <libs>
+                            <lib>
+                                <name>D2k-Dask</name>
+                                <type>shared</type>
+                                <directory>${D2KDASK_ROOT}/Lib</directory>
+                            </lib>
+                            <lib>
+                                <name>PCI-Dask</name>
+                                <type>shared</type>
+                                <directory>${PCISDASK_ROOT}/Lib</directory>
+                            </lib>
+                        </libs>
+                    </linker>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
     <dependencies>
         <dependency>
             <groupId>edu.wustl.cse</groupId>
@@ -34,22 +62,24 @@
             <artifactId>ASL-${aol}-${library}-${mode}</artifactId>
         </dependency>
     </dependencies>
-  <scm>
-    <connection>${scm.connection.cvs.tango-ds}:InputOutput/ADLINK/ContinuousAO</connection>
-    <developerConnection>${scm.developerConnection.cvs.tango-ds}:InputOutput/ADLINK/ContinuousAO</developerConnection>
-    <url>${scm.url.cvs.tango-ds}/InputOutput/ADLINK/ContinuousAO</url>
-  </scm>
-  <developers>
-    <developer>
-      <id>abeille</id>
-      <name>abeille</name>
-      <url>http://controle/</url>
-      <organization>Synchrotron Soleil</organization>
-      <organizationUrl>http://www.synchrotron-soleil.fr</organizationUrl>
-      <roles>
-        <role>manager</role>
-      </roles>
-      <timezone>1</timezone>
-    </developer>
-  </developers>
+
+    <scm>
+        <connection>${scm.connection.cvs.tango-ds}:InputOutput/ADLINK/ContinuousAO</connection>
+        <developerConnection>${scm.developerConnection.cvs.tango-ds}:InputOutput/ADLINK/ContinuousAO</developerConnection>
+        <url>${scm.url.cvs.tango-ds}/InputOutput/ADLINK/ContinuousAO</url>
+    </scm>
+
+    <developers>
+        <developer>
+            <id>abeille</id>
+            <name>abeille</name>
+            <url>http://controle/</url>
+            <organization>Synchrotron Soleil</organization>
+            <organizationUrl>http://www.synchrotron-soleil.fr</organizationUrl>
+            <roles>
+                <role>manager</role>
+            </roles>
+            <timezone>1</timezone>
+        </developer>
+    </developers>
 </project>
-- 
GitLab