2020-03-21 22:58:50 +02:00
|
|
|
# Create the SqSDK library
|
2020-05-08 23:16:48 +03:00
|
|
|
add_library(SqSDKAPI INTERFACE)
|
|
|
|
# Library includes
|
|
|
|
target_include_directories(SqSDKAPI INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include)
|
|
|
|
# Link to required libraries
|
|
|
|
target_link_libraries(SqSDKAPI INTERFACE VCMP SquirrelAPI)
|
|
|
|
# Create the SqSDK library
|
2020-03-21 22:58:50 +02:00
|
|
|
add_library(SqSDK STATIC
|
|
|
|
include/SqConfSDK.h
|
|
|
|
include/SqAPI.h
|
|
|
|
include/SqMod.h
|
|
|
|
SqMod.cpp
|
|
|
|
)
|
|
|
|
# Library includes
|
|
|
|
target_include_directories(SqSDK PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
target_include_directories(SqSDK PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
|
|
|
|
# Link to required libraries
|
2020-05-08 23:16:48 +03:00
|
|
|
target_link_libraries(SqSDK PRIVATE VCMP SquirrelAPI)
|
2020-05-10 12:19:46 +03:00
|
|
|
# Switch to plugin-development mode
|
|
|
|
if(PLUGIN_DEVEL)
|
|
|
|
target_compile_definitions(SqSDK PUBLIC SQMOD_PLUGIN_API=1)
|
2020-05-10 12:21:21 +03:00
|
|
|
endif()
|