squirrel/sqstdlib/CMakeLists.txt

36 lines
1.1 KiB
CMake
Raw Permalink Normal View History

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
if(NOT DEFINED DISABLE_DYNAMIC)
add_library(sqstdlib SHARED ${SQSTDLIB_SRC})
target_link_libraries(sqstdlib squirrel)
if(NOT DEFINED SQ_DISABLE_INSTALLER)
install(TARGETS sqstdlib RUNTIME DESTINATION ${INSTALL_BIN_DIR}
LIBRARY DESTINATION ${INSTALL_LIB_DIR}
ARCHIVE DESTINATION ${INSTALL_LIB_DIR})
endif()
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})
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)
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()