Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap
Commits
4ab41cdc
Commit
4ab41cdc
authored
5 years ago
by
dmitriy.gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Fixed unit tests
parent
d37b2aa2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+5
-1
5 additions, 1 deletion
CMakeLists.txt
test/CMakeLists.txt
+2
-1
2 additions, 1 deletion
test/CMakeLists.txt
with
7 additions
and
2 deletions
CMakeLists.txt
+
5
−
1
View file @
4ab41cdc
...
...
@@ -9,13 +9,17 @@ set(CMAKE_C_FLAGS "-std=c11 -Wall -Wextra")
file
(
GLOB CORE_SRCS src/*.c
)
file
(
GLOB CORE_HEADERS
src
/*.h
)
file
(
GLOB CORE_HEADERS
include/*.h include/unix/*.h include/unix/linux
/*.h
)
add_library
(
${
PROJECT_NAME
}
STATIC
${
CORE_SRCS
}
${
CORE_UNIX_SRCS
}
)
#This paths will be used by project-dependent project libraries
target_include_directories
(
${
PROJECT_NAME
}
INTERFACE include/
)
if
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Linux"
)
set
(
LINUX
"Linux"
)
endif
()
if
(
UNIX
)
add_subdirectory
(
src/unix
)
target_link_libraries
(
${
PROJECT_NAME
}
dap_core_unix
)
...
...
This diff is collapsed.
Click to expand it.
test/CMakeLists.txt
+
2
−
1
View file @
4ab41cdc
...
...
@@ -8,7 +8,7 @@ set(CMAKE_C_STANDARD 11)
add_subdirectory
(
libdap-test
)
if
(
UNIX
)
file
(
GLOB PLATROFM_DEP_SRC unix/*.c
)
file
(
GLOB PLATROFM_DEP_SRC unix/*.c
unix/*.h
)
endif
()
add_executable
(
${
PROJECT_NAME
}
${
SRCS
}
${
PLATROFM_DEP_SRC
}
)
...
...
@@ -22,4 +22,5 @@ add_test(
if
(
UNIX
)
target_include_directories
(
${
PROJECT_NAME
}
PRIVATE unix
)
target_include_directories
(
${
PROJECT_NAME
}
PRIVATE unix/linux
)
endif
()
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