Skip to content

Commit

Permalink
add configure option for single file build
Browse files Browse the repository at this point in the history
  • Loading branch information
goatshriek committed Sep 27, 2023
1 parent 2348140 commit f81fa9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ string(CONCAT enable_cpp_help_string
)
option(ENABLE_CPP ${enable_cpp_help_string} OFF)

option(BUILD_SINGLE_FILE "create a single file version of library" OFF)
option(BUILD_PYTHON "include the python libary" OFF)

option(ENABLE_THREAD_SAFETY "support thread-safe functionality" ON)
Expand Down Expand Up @@ -681,7 +682,7 @@ if(PKG_CONFIG_FOUND)
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
endif()


if(BUILD_SINGLE_FILE)
# creation of single source install option
function(include_file source_filename include_filenames already_included)
foreach(include_filename ${include_filenames})
Expand Down Expand Up @@ -739,7 +740,7 @@ foreach(source_file ${STUMPLESS_SOURCES})
)
endif()
endforeach()

endif()

# installation of examples if enabled
if(INSTALL_EXAMPLES)
Expand Down

0 comments on commit f81fa9f

Please sign in to comment.