Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
d5d6f3a7
Unverified
Commit
d5d6f3a7
authored
Aug 24, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'newer-cmake-files' of github.com:PDB-REDO/libcifpp into newer-cmake-files
parents
9d2f2b30
c13ee92f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
CMakeLists.txt
+1
-1
test/unit-test.cpp
+13
-11
No files found.
CMakeLists.txt
View file @
d5d6f3a7
...
@@ -27,7 +27,7 @@ if(MSVC)
...
@@ -27,7 +27,7 @@ if(MSVC)
endif
()
endif
()
# Build shared libraries by default (not my cup of tea, but hey)
# Build shared libraries by default (not my cup of tea, but hey)
option
(
BUILD_SHARED_LIBS
"Build a shared library instead of a static one"
O
N
)
option
(
BUILD_SHARED_LIBS
"Build a shared library instead of a static one"
O
FF
)
set
(
CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON
)
set
(
CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON
)
# set(CMAKE_DEBUG_POSTFIX d)
# set(CMAKE_DEBUG_POSTFIX d)
...
...
test/unit-test.cpp
View file @
d5d6f3a7
...
@@ -1426,17 +1426,19 @@ _cat_3.num
...
@@ -1426,17 +1426,19 @@ _cat_3.num
BOOST_CHECK
(
cat3
.
size
()
==
2
);
BOOST_CHECK
(
cat3
.
size
()
==
2
);
int
id
,
num
;
{
std
::
string
name
;
int
id
,
num
;
cif
::
tie
(
id
,
name
,
num
)
=
cat3
.
front
().
get
(
"id"
,
"name"
,
"num"
);
std
::
string
name
;
BOOST_CHECK
(
id
==
1
);
cif
::
tie
(
id
,
name
,
num
)
=
cat3
.
front
().
get
(
"id"
,
"name"
,
"num"
);
BOOST_CHECK
(
num
==
1
);
BOOST_CHECK
(
id
==
1
);
BOOST_CHECK
(
name
==
"aapje"
);
BOOST_CHECK
(
num
==
1
);
BOOST_CHECK
(
name
==
"aapje"
);
cif
::
tie
(
id
,
name
,
num
)
=
cat3
.
back
().
get
(
"id"
,
"name"
,
"num"
);
BOOST_CHECK
(
id
==
2
);
cif
::
tie
(
id
,
name
,
num
)
=
cat3
.
back
().
get
(
"id"
,
"name"
,
"num"
);
BOOST_CHECK
(
num
==
2
);
BOOST_CHECK
(
id
==
2
);
BOOST_CHECK
(
name
==
"aap"
);
BOOST_CHECK
(
num
==
2
);
BOOST_CHECK
(
name
==
"aap"
);
}
int
i
=
0
;
int
i
=
0
;
for
(
const
auto
&
[
id
,
name
,
num
,
desc
]
:
cat2
.
rows
<
int
,
std
::
string
,
int
,
std
::
string
>
({
"id"
,
"name"
,
"num"
,
"desc"
}))
for
(
const
auto
&
[
id
,
name
,
num
,
desc
]
:
cat2
.
rows
<
int
,
std
::
string
,
int
,
std
::
string
>
({
"id"
,
"name"
,
"num"
,
"desc"
}))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment