33 lines
851 B
CMake
33 lines
851 B
CMake
add_executable(
|
|
fugg-client
|
|
"src/main.cpp"
|
|
"src/Client.cpp"
|
|
# Symbols that flyff-client imports.
|
|
"src/export/gl.cpp"
|
|
"src/export/al.cpp"
|
|
"src/export/callback.cpp"
|
|
"src/export/embind.cpp"
|
|
"src/export/env.cpp"
|
|
"src/export/platform.cpp"
|
|
src/behaviour/Action.h src/Packet.h src/behaviour/Script.h)
|
|
|
|
# Flyff is based on c++14
|
|
add_definitions(-std=c++14 -Os)
|
|
|
|
target_include_directories(fugg-client PUBLIC "include")
|
|
target_link_libraries (fugg-client LINK_PUBLIC flyff-api)
|
|
|
|
set_target_properties(
|
|
fugg-client
|
|
PROPERTIES LINK_FLAGS "\
|
|
-lembind \
|
|
-g \
|
|
-sINITIAL_MEMORY=2048MB \
|
|
-fsanitize=undefined \
|
|
-sASSERTIONS=1 \
|
|
-sSAFE_HEAP=1 \
|
|
-sDEMANGLE_SUPPORT=1 \
|
|
-sEXPORTED_RUNTIME_METHODS=UTF8ToString,stringToUTF8 \
|
|
-sMIN_WEBGL_VERSION=2 \
|
|
-sMAX_WEBGL_VERSION=2"
|
|
) |