Skip to content

Commit

Permalink
Add getopt version
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Jul 4, 2024
1 parent a8cc36f commit 47c11dd
Show file tree
Hide file tree
Showing 3 changed files with 673 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cpp_version/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ ADD_CUSTOM_TARGET(release
## Library
## ======================================================================================##
file(GLOB_RECURSE SOURCES src/utility/*.cpp src/Forest/*.cpp src/Tree/*.cpp)
if (MSVC)
list(APPEND SOURCES src/getopt/getopt.c)
endif ()
option(BUILD_SHARED_LIBS "shared/static lib" OFF)
add_library(ranger ${SOURCES})
target_include_directories(ranger PUBLIC src/utility src/Forest src/Tree src)
if (MSVC)
target_include_directories(ranger PRIVATE src/getopt)
endif ()
target_link_libraries(ranger Threads::Threads)
install(TARGETS ranger RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
Expand Down
Loading

0 comments on commit 47c11dd

Please sign in to comment.