Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
U
uciadapter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Service Desk
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
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
Loic Guegan
uciadapter
Commits
12e8dd86
Commit
12e8dd86
authored
1 year ago
by
Loic Guegan
Browse files
Options
Downloads
Patches
Plain Diff
Switch to static library and improve CMake integration
parent
e5e82057
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#854974147
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+8
-4
8 additions, 4 deletions
CMakeLists.txt
with
8 additions
and
4 deletions
CMakeLists.txt
+
8
−
4
View file @
12e8dd86
...
...
@@ -9,7 +9,7 @@ if(WIN32)
SET
(
COMPILE_PLATFORM WIN32
)
SET
(
CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON
)
endif
()
add_library
(
uciadapter S
HARED
src/UCI.cpp
${
process
}
)
add_library
(
uciadapter S
TATIC
src/UCI.cpp
${
process
}
)
# Includes
set
(
UCIADAPTER_INCLUDE_DIR
${
CMAKE_CURRENT_BINARY_DIR
}
/includes
)
# For conveniance
...
...
@@ -19,8 +19,12 @@ configure_file(src/UCI.hpp.in ${UCIADAPTER_INCLUDE_DIR}/UCI.hpp)
configure_file
(
src/Process.hpp
${
UCIADAPTER_INCLUDE_DIR
}
COPYONLY
)
configure_file
(
src/ProcessLinux.hpp
${
UCIADAPTER_INCLUDE_DIR
}
COPYONLY
)
configure_file
(
src/ProcessWindows.hpp
${
UCIADAPTER_INCLUDE_DIR
}
COPYONLY
)
include_directories
(
${
UCIADAPTER_INCLUDE_DIR
}
)
target_
include_directories
(
uciadapter PUBLIC
${
UCIADAPTER_INCLUDE_DIR
}
)
# Tests
enable_testing
()
add_subdirectory
(
"tests/"
)
\ No newline at end of file
# Unit tests
set
(
COMPILE_TESTS OFF CACHE BOOL
"Should unit tests be compiled"
)
if
(
COMPILE_TESTS
)
enable_testing
()
add_subdirectory
(
"tests/"
)
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