mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-08-04 07:01:46 +02:00
Plugin development mode.
Temporary workaround untill a better approach is implemented.
This commit is contained in:
@@ -7,12 +7,13 @@ set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
|
||||
# Several plugin options
|
||||
option(BUILTIN_RUNTIMES "Include the MinGW runtime into the binary itself." ON)
|
||||
option(FORCE_32BIT_BIN "Create a 32-bit executable binary if the compiler defaults to 64-bit." OFF)
|
||||
option(PLUGIN_DEVEL "Switch to plugin development." OFF)
|
||||
option(ENABLE_MYSQL "Enable the MySQL library." OFF)
|
||||
option(ENABLE_API21 "Build for 2.1 API." OFF)
|
||||
|
||||
# Default to c++14 standard
|
||||
if(CMAKE_VERSION VERSION_LESS "3.1")
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
|
||||
endif()
|
||||
else()
|
||||
@@ -29,14 +30,14 @@ if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
endif()
|
||||
|
||||
# Include mingw runntime into the binary
|
||||
if (GCC OR MINGW)
|
||||
if(GCC OR MINGW)
|
||||
if(BUILTIN_RUNTIMES)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Enable position independent code
|
||||
if (UNIX)
|
||||
if(UNIX)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
# Include VCMP library
|
||||
@@ -47,7 +48,10 @@ add_subdirectory(squirrel)
|
||||
add_subdirectory(sqrat)
|
||||
# Include SDK library
|
||||
add_subdirectory(sdk)
|
||||
# Include Module library
|
||||
add_subdirectory(module)
|
||||
# Include Sample module
|
||||
#add_subdirectory(hello)
|
||||
if(PLUGIN_DEVEL)
|
||||
# Include Sample module
|
||||
add_subdirectory(hello)
|
||||
else()
|
||||
# Include Module library
|
||||
add_subdirectory(module)
|
||||
end()
|
Reference in New Issue
Block a user