@ -37,7 +37,6 @@ project(${ARGTABLE3_PROJECT_NAME})
option ( ARGTABLE3_ENABLE_CONAN "Enable Conan dependency manager" OFF )
option ( ARGTABLE3_ENABLE_TESTS "Enable unit tests" ON )
option ( ARGTABLE3_USE_AMALGAMATION "Use the amalgamation distribution" OFF )
option ( ARGTABLE3_BUILD_STATIC_EXAMPLES "Build examples with the static argtable3 library" OFF )
get_filename_component ( VERSION_TAG_PATH "version.tag" ABSOLUTE )
@ -58,7 +57,6 @@ set(PROJECT_VERSION_TWEAK 0)
set ( ARGTABLE3_VERSION ${ PROJECT_VERSION_MAJOR } . ${ PROJECT_VERSION_MINOR } . ${ PROJECT_VERSION_PATCH } . ${ PROJECT_VERSION_TWEAK } )
set ( ARGTABLE3_FULL_VERSION ${ PROJECT_VERSION_MAJOR } . ${ PROJECT_VERSION_MINOR } . ${ PROJECT_VERSION_PATCH } . ${ PROJECT_VERSION_BUILD } )
if ( ARGTABLE3_ENABLE_CONAN AND EXISTS "${CMAKE_BINARY_DIR}/conanbuildinfo.cmake" )
include ( "${CMAKE_BINARY_DIR}/conanbuildinfo.cmake" )
conan_basic_setup ( TARGETS )
@ -71,36 +69,24 @@ if(ARGTABLE3_ENABLE_TESTS)
enable_testing ( )
endif ( )
if ( ARGTABLE3_USE_AMALGAMATION )
if ( NOT EXISTS "${CMAKE_SOURCE_DIR}/dist/argtable3.c" )
execute_process (
C O M M A N D " $ { C M A K E _ S O U R C E _ D I R } / t o o l s / b u i l d " d i s t
W O R K I N G _ D I R E C T O R Y " $ { C M A K E _ S O U R C E _ D I R } / t o o l s "
)
endif ( )
set ( ARGTABLE3_AMALGAMATION_SRC_FILE ${ PROJECT_SOURCE_DIR } /dist/argtable3.c )
set ( ARGTABLE3_SRC_FILES
$ { C M A K E _ S O U R C E _ D I R } / d i s t / a r g t a b l e 3 . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g _ c m d . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g _ d a t e . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g _ d b l . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g _ d s t r . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g _ e n d . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g _ f i l e . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g _ h a s h t a b l e . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g _ i n t . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g _ l i t . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g _ r e m . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g _ r e x . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g _ s t r . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g _ u t i l s . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / a r g t a b l e 3 . c
$ { P R O J E C T _ S O U R C E _ D I R } / s r c / g e t o p t _ l o n g . c
)
else ( )
set ( ARGTABLE3_SRC_FILES
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g _ c m d . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g _ d a t e . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g _ d b l . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g _ d s t r . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g _ e n d . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g _ f i l e . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g _ h a s h t a b l e . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g _ i n t . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g _ l i t . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g _ r e m . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g _ r e x . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g _ s t r . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g _ u t i l s . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / a r g t a b l e 3 . c
$ { C M A K E _ S O U R C E _ D I R } / s r c / g e t o p t _ l o n g . c
)
endif ( )
# P l a t f o r m s p e c i f i c s e t t i n g s f o r i n s t a l l a t i o n
if ( UNIX )