2016-03-13 14:36:10 +01:00
|
|
|
set(SQSTDLIB_SRC sqstdaux.cpp
|
|
|
|
sqstdblob.cpp
|
2016-03-08 14:43:19 +01:00
|
|
|
sqstdio.cpp
|
|
|
|
sqstdmath.cpp
|
2016-03-13 14:36:10 +01:00
|
|
|
sqstdrex.cpp
|
|
|
|
sqstdstream.cpp
|
2016-03-08 14:43:19 +01:00
|
|
|
sqstdstring.cpp
|
2016-03-13 14:36:10 +01:00
|
|
|
sqstdsystem.cpp)
|
2016-01-29 18:56:44 +01:00
|
|
|
|
2017-02-25 15:40:47 +01:00
|
|
|
if(NOT DEFINED DISABLE_DYNAMIC)
|
|
|
|
add_library(sqstdlib SHARED ${SQSTDLIB_SRC})
|
|
|
|
target_link_libraries(sqstdlib squirrel)
|
2017-03-27 22:08:56 +02:00
|
|
|
if(NOT DEFINED SQ_DISABLE_INSTALLER)
|
|
|
|
install(TARGETS sqstdlib RUNTIME DESTINATION ${INSTALL_BIN_DIR}
|
2017-02-25 15:40:47 +01:00
|
|
|
LIBRARY DESTINATION ${INSTALL_LIB_DIR}
|
|
|
|
ARCHIVE DESTINATION ${INSTALL_LIB_DIR})
|
2017-03-27 22:08:56 +02:00
|
|
|
endif()
|
2017-02-25 15:40:47 +01:00
|
|
|
endif()
|
2016-01-29 18:56:44 +01:00
|
|
|
|
2016-03-17 12:44:03 +01:00
|
|
|
if(NOT DEFINED DISABLE_STATIC)
|
|
|
|
add_library(sqstdlib_static STATIC ${SQSTDLIB_SRC})
|
2017-03-27 22:08:56 +02:00
|
|
|
if(NOT DEFINED SQ_DISABLE_INSTALLER)
|
|
|
|
install(TARGETS sqstdlib_static ARCHIVE DESTINATION ${INSTALL_LIB_DIR})
|
|
|
|
endif()
|
2016-03-17 12:44:03 +01:00
|
|
|
endif()
|
2016-03-16 00:01:16 +01:00
|
|
|
|
|
|
|
if(DEFINED LONG_OUTPUT_NAMES)
|
2017-02-25 15:40:47 +01:00
|
|
|
if(NOT DEFINED DISABLE_DYNAMIC)
|
|
|
|
set_target_properties(sqstdlib PROPERTIES OUTPUT_NAME sqstdlib3)
|
|
|
|
endif()
|
2016-03-17 12:44:03 +01:00
|
|
|
|
|
|
|
if(NOT DEFINED DISABLE_STATIC)
|
|
|
|
set_target_properties(sqstdlib_static PROPERTIES OUTPUT_NAME sqstdlib3_static)
|
|
|
|
endif()
|
2016-03-16 00:01:16 +01:00
|
|
|
endif()
|