|
|
@@ -6,9 +6,13 @@ install(TARGETS sq RUNTIME DESTINATION ${INSTALL_BIN_DIR})
|
|
|
add_executable(sq_static sq.c)
|
|
|
set_target_properties(sq_static PROPERTIES LINKER_LANGUAGE C)
|
|
|
target_link_libraries(sq_static squirrel_static sqstdlib_static)
|
|
|
+install(TARGETS sq_static RUNTIME DESTINATION ${INSTALL_BIN_DIR})
|
|
|
+
|
|
|
+if(DEFINED LONG_OUTPUT_NAMES)
|
|
|
+ set_target_properties(sq PROPERTIES OUTPUT_NAME squirrel3)
|
|
|
+ set_target_properties(sq_static PROPERTIES OUTPUT_NAME squirrel3_static)
|
|
|
+endif()
|
|
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
set_target_properties(sq_static PROPERTIES COMPILE_FLAGS "-static -Wl,-static")
|
|
|
endif()
|
|
|
-
|
|
|
-install(TARGETS sq_static RUNTIME DESTINATION ${INSTALL_BIN_DIR})
|