-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
57 additions
and
32 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,17 @@ | ||
### LICENSE: | ||
|
||
The source code is in the public domain and not licensed or under | ||
copyright. The information and software may be used freely by the public. | ||
As required by 17 U.S.C. 403, third parties producing copyrighted works | ||
consisting predominantly of the material produced by U.S. government | ||
agencies must provide notice with such work(s) identifying the U.S. | ||
Government material incorporated and stating that such material is not | ||
subject to copyright protection. | ||
|
||
Derived works shall not identify themselves in a manner that implies an | ||
endorsement by or an affiliation with the Naval Research Laboratory. | ||
|
||
RECIPIENT BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF THE | ||
SOFTWARE AND ANY RELATED MATERIALS, AND AGREES TO INDEMNIFY THE NAVAL | ||
RESEARCH LABORATORY FOR ALL THIRD-PARTY CLAIMS RESULTING FROM THE ACTIONS | ||
OF RECIPIENT IN THE USE OF THE SOFTWARE. |
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,32 @@ | ||
# CMakeLists files in this project can | ||
# refer to the root source directory of the project as ${HELLO_SOURCE_DIR} and | ||
# to the root binary directory of the project as ${HELLO_BINARY_DIR}. | ||
cmake_minimum_required (VERSION 3.1) | ||
project (JonkerVolgenant VERSION 1.0 | ||
DESCRIPTION "Library for the Jonker-Volgenant algorithm to solve the assignement problem in a bipartite graph" | ||
LANGUAGES C) | ||
|
||
if(NOT CMAKE_BUILD_TYPE) | ||
set(CMAKE_BUILD_TYPE Release) | ||
endif() | ||
|
||
set(CMAKE_C_FLAGS "-Wall -Wextra") | ||
set(CMAKE_C_FLAGS_DEBUG "-g") | ||
set(CMAKE_C_FLAGS_RELEASE "-O2") | ||
|
||
add_library (JonkerVolgenant SHARED | ||
src/assign2DCBasic.c | ||
src/interface.c | ||
) | ||
|
||
# target_compile_options(JonkerVolgenant PRIVATE -O2) | ||
set_target_properties(JonkerVolgenant PROPERTIES PUBLIC_HEADER src/assignAlgs2D.h) | ||
set_property(TARGET JonkerVolgenant PROPERTY C_STANDARD 99) | ||
set_property(TARGET JonkerVolgenant PROPERTY C_STANDARD_REQUIRED TRUE) | ||
target_include_directories(JonkerVolgenant PRIVATE .) | ||
include(GNUInstallDirs) | ||
install(TARGETS JonkerVolgenant | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) | ||
|