Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ASL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Tango devices
InputOutput
ADLINK
ASL
Commits
bdfae588
Commit
bdfae588
authored
Oct 23, 2023
by
Patrick MADELA
Browse files
Options
Downloads
Patches
Plain Diff
Fix build
parent
6e15468d
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+12
-4
12 additions, 4 deletions
CMakeLists.txt
conanfile.py
+4
-2
4 additions, 2 deletions
conanfile.py
test_package/src/test_package.cpp
+9
-2
9 additions, 2 deletions
test_package/src/test_package.cpp
with
25 additions
and
8 deletions
CMakeLists.txt
+
12
−
4
View file @
bdfae588
...
...
@@ -4,28 +4,36 @@ project (asl)
option
(
BUILD_SHARED_LIBS
"Build using shared libraries"
ON
)
find_package
(
ace CONFIG REQUIRED
)
find_package
(
d2k-dask CONFIG REQUIRED
)
find_package
(
pcis-dask CONFIG REQUIRED
)
add_compile_definitions
(
PROJECT_NAME=
${
PROJECT_NAME
}
)
add_compile_definitions
(
PROJECT_VERSION=
${
PROJECT_VERSION
}
)
add_compile_definitions
(
ASL_HAS_DLL
)
add_compile_definitions
(
ASL_BUILD
)
file
(
GLOB_RECURSE sources
src/*.cpp
)
set
(
includedirs
src
include
)
list
(
FILTER sources EXCLUDE REGEX
".*/SingleDAQ.cpp"
)
add_library
(
asl
${
sources
}
)
target_include_directories
(
asl PRIVATE
${
includedirs
}
)
target_link_libraries
(
asl PRIVATE ace::ace
)
target_link_libraries
(
asl PRIVATE d2k-dask::d2k-dask
)
target_link_libraries
(
asl PRIVATE pcis-dask::pcis-dask
)
if
(
MAJOR_VERSION
)
set_target_properties
(
asl PROPERTIES VERSION
${
PROJECT_VERSION
}
SOVERSION
${
MAJOR_VERSION
}
)
endif
()
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/src/ DESTINATION include
FILES_MATCHING PATTERN
"*.h"
)
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/include/ DESTINATION include
)
install
(
TARGETS asl LIBRARY DESTINATION
${
LIB_INSTALL_DIR
}
)
This diff is collapsed.
Click to expand it.
conanfile.py
+
4
−
2
View file @
bdfae588
...
...
@@ -20,10 +20,12 @@ class aslRecipe(ConanFile):
default_options
=
{
"
shared
"
:
False
,
"
fPIC
"
:
True
}
# Sources are located in the same place as this recipe, copy them to the recipe
exports_sources
=
"
CMakeLists.txt
"
,
"
src/**
"
exports_sources
=
"
CMakeLists.txt
"
,
"
src/**
"
,
"
include/**
"
def
requirements
(
self
):
self
.
requires
(
"
ace/5.7.0@soleil/stable
"
)
self
.
requires
(
"
ace/5.7.0@soleil/stable
"
,
transitive_headers
=
True
,
transitive_libs
=
True
)
self
.
requires
(
"
d2k-dask/18.10@soleil/stable
"
,
transitive_headers
=
True
,
transitive_libs
=
True
)
self
.
requires
(
"
pcis-dask/5.10@soleil/stable
"
,
transitive_headers
=
True
,
transitive_libs
=
True
)
def
config_options
(
self
):
if
self
.
settings
.
os
==
"
Windows
"
:
...
...
This diff is collapsed.
Click to expand it.
test_package/src/test_package.cpp
+
9
−
2
View file @
bdfae588
#include
<asl/ContinuousAI.h>
#include
<asl/Data.h>
class
MyData
:
public
asl
::
Data
{
size_t
size
()
const
override
{
return
0
;
}
};
int
main
(
int
argc
,
char
*
argv
[])
{
ADLinkContinuousAI
*
ai
=
new
ADLinkContinuousAI
;
MyData
*
mydata
=
new
MyData
()
;
return
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment