@ -4,6 +4,7 @@ project (miniupnpc C)
set ( MINIUPNPC_VERSION 1.9 )
set ( MINIUPNPC_API_VERSION 15 )
if ( 0 )
# [ [ - w e c o m m e n t o u t t h i s b l o c k a s w e d o n ' t s u p p o r t t h e s e o t h e r b u i l d t y p e s
if ( NOT CMAKE_BUILD_TYPE )
if ( WIN32 )
@ -15,7 +16,8 @@ if (NOT CMAKE_BUILD_TYPE)
" C h o o s e t h e t y p e o f b u i l d , o p t i o n s a r e : D e b u g R e l e a s e R e l W i t h D e b I n f o M i n S i z e R e l . "
F O R C E )
endif ( )
] ]
# ] ]
endif ( 0 )
option ( UPNPC_BUILD_STATIC "Build static library" TRUE )
option ( UPNPC_BUILD_SHARED "Build shared library" FALSE )
@ -41,6 +43,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
add_definitions ( -D_DARWIN_C_SOURCE )
endif ( )
if ( 0 )
# [ [ - w e c o m m e n t o u t t h i s b l o c k a s w e a l r e a d y s e t f l a g s
# S e t c o m p i l e r s p e c i f i c b u i l d f l a g s
if ( CMAKE_COMPILER_IS_GNUC )
@ -64,7 +67,8 @@ if (CMAKE_COMPILER_IS_GNUC)
endif ( NOT CONFIGURED )
endif ( )
] ]
# ] ]
endif ( 0 )
configure_file ( miniupnpcstrings.h.cmake ${ CMAKE_BINARY_DIR } /miniupnpcstrings.h )
include_directories ( ${ CMAKE_BINARY_DIR } )