-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create libdatalog, move datalog from wpiutil
- Loading branch information
1 parent
d429635
commit 5eece58
Showing
13 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
project(libdatalog) | ||
|
||
include(CompileWarnings) | ||
|
||
file( | ||
GLOB libdatalog_src | ||
src/main/native/cpp/*.cpp | ||
) | ||
|
||
add_library(libdatalog ${libdatalog_src}) | ||
set_target_properties(wpiutil PROPERTIES DEBUG_POSTFIX "d") | ||
|
||
target_compile_features(libdatalog PUBLIC cxx_std_20) | ||
if(MSVC) | ||
target_compile_options( | ||
libdatalog | ||
PUBLIC /permissive- /Zc:preprocessor /Zc:__cplusplus /Zc:throwingNew /MP /bigobj /utf-8 | ||
) | ||
target_compile_definitions(libdatalog PRIVATE -D_CRT_SECURE_NO_WARNINGS) | ||
endif() | ||
wpilib_target_warnings(libdatalog) | ||
|
||
target_include_directories( | ||
libdatalog | ||
PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/main/native/include> | ||
) | ||
|
||
target_link_libraries(libdatalog PRIVATE wpiutil) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.