Last active
August 8, 2019 16:37
-
-
Save schoolmeister/5615f3b84b6f5737b08bc04dc3372f6b to your computer and use it in GitHub Desktop.
Updated version of "An opinionated EmptyEpsilon setup for windows"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "win32", | |
"includePath": [ | |
"${workspaceFolder}/src", | |
"${workspaceFolder}/../SeriousProton/src", | |
"${workspaceFolder}/../SFML-2.5.1/include" | |
], | |
"browse": { | |
"path": [ | |
"${workspaceFolder}/.." | |
], | |
"limitSymbolsToIncludedHeaders": true, | |
"databaseFilename": "" | |
}, | |
"intelliSenseMode": "clang-x64", | |
"configurationProvider": "vector-of-bool.cmake-tools", | |
"compilerPath": "${workspaceFolder}/../mingw32/bin/gcc.exe", | |
"cStandard": "c11", | |
"cppStandard": "c++17", | |
"compileCommands": "${workspaceFolder}/.bin/win/compile_commands.json" | |
} | |
], | |
"version": 4 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "local mingw32", | |
"compilers": { | |
"CXX": "${workspaceFolder}/../mingw32/bin/g++.exe", | |
"C": "${workspaceFolder}/../mingw32/bin/gcc.exe", | |
"RC": "${workspaceFolder}/../mingw32/bin/windres.exe" | |
} | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildType: | |
default: debug | |
choices: | |
debug: | |
short: Debug | |
long: Build with debugging information | |
buildType: Debug | |
release: | |
short: Release | |
long: Build with optimizations | |
buildType: Release | |
crashLogger: | |
default: off | |
choices: | |
on: | |
short: Log | |
long: Enable the drmingw crash logging facilities | |
settings: | |
ENABLE_CRASH_LOGGER: ON | |
off: | |
short: Don't Log | |
long: no crash logging | |
settings: | |
ENABLE_CRASH_LOGGER: OFF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project(EmptyEpsilon) | |
cmake_minimum_required(VERSION 2.8.12) | |
option(ENABLE_CRASH_LOGGER "Enable the drmingw crash logging facilities" OFF) | |
message(STATUS "ENABLE_CRASH_LOGGER is " ${ENABLE_CRASH_LOGGER}) | |
# Check if serious proton dir is set. | |
if(NOT DEFINED SERIOUS_PROTON_DIR) | |
message(FATAL_ERROR "SERIOUS_PROTON_DIR was not set. Unable to continue") | |
endif(NOT DEFINED SERIOUS_PROTON_DIR) | |
if(NOT IS_ABSOLUTE "${SERIOUS_PROTON_DIR}") | |
get_filename_component(SERIOUS_PROTON_DIR "${CMAKE_BINARY_DIR}/${SERIOUS_PROTON_DIR}" ABSOLUTE) | |
endif() | |
if(CMAKE_BUILD_TYPE MATCHES Debug) | |
add_compile_definitions(DEBUG) | |
endif(CMAKE_BUILD_TYPE MATCHES Debug) | |
if(ENABLE_CRASH_LOGGER) | |
if(WIN32) | |
if(NOT DEFINED DRMINGW_ROOT) | |
message(FATAL_ERROR "DRMINGW_ROOT was not set. Unable to continue") | |
endif(NOT DEFINED DRMINGW_ROOT) | |
endif(WIN32) | |
endif(ENABLE_CRASH_LOGGER) | |
if(NOT DEFINED CPACK_PACKAGE_VERSION_MAJOR) | |
string(TIMESTAMP CPACK_PACKAGE_VERSION_MAJOR "%Y") | |
string(TIMESTAMP CPACK_PACKAGE_VERSION_MINOR "%m") | |
string(TIMESTAMP CPACK_PACKAGE_VERSION_PATCH "%d") | |
endif(NOT DEFINED CPACK_PACKAGE_VERSION_MAJOR) | |
# Set our optimization flags. | |
set(OPTIMIZER_FLAGS "") | |
if(CMAKE_C_COMPILER_ID STREQUAL "GNU") | |
# On gcc, we want some general optimalizations that improve speed a lot. | |
set(OPTIMIZER_FLAGS "${OPTIMIZER_FLAGS} -O3 -flto -funsafe-math-optimizations") | |
# If we are compiling for a rasberry pi, we want to aggressively optimize for the CPU we are running on. | |
# Note that this check only works if we are compiling directly on the pi, as it is a dirty way of checkif if we are on the pi. | |
if(EXISTS /opt/vc/include/bcm_host.h OR COMPILE_FOR_PI) | |
set(OPTIMIZER_FLAGS "${OPTIMIZER_FLAGS} -mcpu=native -mfpu=neon-vfpv4 -mfloat-abi=hard") | |
endif() | |
endif() | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") | |
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${OPTIMIZER_FLAGS}") | |
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${OPTIMIZER_FLAGS}") | |
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -g1 ${OPTIMIZER_FLAGS}") | |
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -g1 ${OPTIMIZER_FLAGS}") | |
# install resources, scripts, and packs to app bundle instead of system dir. | |
if(APPLE) | |
set(CMAKE_INSTALL_PREFIX "./") | |
elseif(UNIX) | |
# Set RESOURCE_BASE_DIR on Unix so the built binary is able to find resources | |
add_definitions(-DRESOURCE_BASE_DIR="${CMAKE_INSTALL_PREFIX}/share/emptyepsilon/") | |
endif() | |
if(CONFIG_DIR) | |
add_definitions(-DCONFIG_DIR="${CONFIG_DIR}") | |
elseif(UNIX) | |
add_definitions(-DCONFIG_DIR="${CMAKE_INSTALL_PREFIX}/share/emptyepsilon/") | |
endif() | |
## ensure c++11 is used | |
if(NOT ${CMAKE_VERSION} VERSION_LESS 3.1) | |
set(CMAKE_CXX_STANDARD 11) | |
else() | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
endif() | |
set(EXECUTABLE_NAME "EmptyEpsilon") | |
set(SOURCES | |
src/main.cpp | |
src/threatLevelEstimate.cpp | |
src/preferenceManager.cpp | |
src/pathPlanner.cpp | |
src/epsilonServer.cpp | |
src/particleEffect.cpp | |
src/mouseCalibrator.cpp | |
src/httpScriptAccess.cpp | |
src/modelInfo.cpp | |
src/packResourceProvider.cpp | |
src/scienceDatabase.cpp | |
src/commsScriptInterface.cpp | |
src/modelData.cpp | |
src/gameGlobalInfo.cpp | |
src/GMActions.cpp | |
src/script.cpp | |
src/playerInfo.cpp | |
src/gameStateLogger.cpp | |
src/shipTemplate.cpp | |
src/beamTemplate.cpp | |
src/missileWeaponData.cpp | |
src/factionInfo.cpp | |
src/mesh.cpp | |
src/scenarioInfo.cpp | |
src/repairCrew.cpp | |
src/GMScriptCallback.cpp | |
src/tutorialGame.cpp | |
src/menus/joinServerMenu.cpp | |
src/menus/serverBrowseMenu.cpp | |
src/menus/mainMenus.cpp | |
src/menus/serverCreationScreen.cpp | |
src/menus/tutorialMenu.cpp | |
src/menus/optionsMenu.cpp | |
src/menus/shipSelectionScreen.cpp | |
src/menus/autoConnectScreen.cpp | |
src/screens/cinematicViewScreen.cpp | |
src/screens/crewStationScreen.cpp | |
src/screens/topDownScreen.cpp | |
src/screens/windowScreen.cpp | |
src/screens/mainScreen.cpp | |
src/screens/crew4/operationsScreen.cpp | |
src/screens/crew4/engineeringAdvancedScreen.cpp | |
src/screens/crew4/tacticalScreen.cpp | |
src/screens/crew6/engineeringScreen.cpp | |
src/screens/crew6/scienceScreen.cpp | |
src/screens/crew6/relayScreen.cpp | |
src/screens/crew6/weaponsScreen.cpp | |
src/screens/crew6/helmsScreen.cpp | |
src/screens/crew1/singlePilotScreen.cpp | |
src/screens/extra/damcon.cpp | |
src/screens/extra/powerManagement.cpp | |
src/screens/extra/databaseScreen.cpp | |
src/screens/extra/shipLogScreen.cpp | |
src/screens/gm/gameMasterScreen.cpp | |
src/screens/gm/objectCreationView.cpp | |
src/screens/gm/globalMessageEntryView.cpp | |
src/screens/gm/chatDialog.cpp | |
src/screens/gm/tweak.cpp | |
src/screenComponents/aimLock.cpp | |
src/screenComponents/alertOverlay.cpp | |
src/screenComponents/helpOverlay.cpp | |
src/screenComponents/missileTubeControls.cpp | |
src/screenComponents/selfDestructIndicator.cpp | |
src/screenComponents/viewport3d.cpp | |
src/screenComponents/selfDestructEntry.cpp | |
src/screenComponents/dockingButton.cpp | |
src/screenComponents/shieldsEnableButton.cpp | |
src/screenComponents/selfDestructButton.cpp | |
src/screenComponents/shieldFreqencySelect.cpp | |
src/screenComponents/jumpControls.cpp | |
src/screenComponents/impulseControls.cpp | |
src/screenComponents/frequencyCurve.cpp | |
src/screenComponents/noiseOverlay.cpp | |
src/screenComponents/powerDamageIndicator.cpp | |
src/screenComponents/beamTargetSelector.cpp | |
src/screenComponents/shipInternalView.cpp | |
src/screenComponents/beamFrequencySelector.cpp | |
src/screenComponents/radarView.cpp | |
src/screenComponents/rawScannerDataRadarOverlay.cpp | |
src/screenComponents/scanTargetButton.cpp | |
src/screenComponents/snapSlider.cpp | |
src/screenComponents/indicatorOverlays.cpp | |
src/screenComponents/openCommsButton.cpp | |
src/screenComponents/combatManeuver.cpp | |
src/screenComponents/rotatingModelView.cpp | |
src/screenComponents/shipDestroyedPopup.cpp | |
src/screenComponents/warpControls.cpp | |
src/screenComponents/targetsContainer.cpp | |
src/screenComponents/globalMessage.cpp | |
src/screenComponents/commsOverlay.cpp | |
src/screenComponents/jumpIndicator.cpp | |
src/screenComponents/scanningDialog.cpp | |
src/screenComponents/signalQualityIndicator.cpp | |
src/screenComponents/mainScreenControls.cpp | |
src/screenComponents/databaseView.cpp | |
src/screenComponents/shipsLogControl.cpp | |
src/screenComponents/onScreenKeyboard.cpp | |
src/screenComponents/hackingDialog.cpp | |
src/screenComponents/customShipFunctions.cpp | |
src/screenComponents/scrollingBanner.cpp | |
src/gui/colorConfig.cpp | |
src/gui/hotkeyConfig.cpp | |
src/gui/mouseRenderer.cpp | |
src/gui/scriptError.cpp | |
src/gui/gui2_slider.cpp | |
src/gui/gui2_togglebutton.cpp | |
src/gui/gui2_arrow.cpp | |
src/gui/gui2_selector.cpp | |
src/gui/gui2_canvas.cpp | |
src/gui/gui2_rotationdial.cpp | |
src/gui/gui2_textentry.cpp | |
src/gui/gui2_label.cpp | |
src/gui/gui2_image.cpp | |
src/gui/gui2_autolayout.cpp | |
src/gui/gui2_arrowbutton.cpp | |
src/gui/gui2_entrylist.cpp | |
src/gui/gui2_progressbar.cpp | |
src/gui/gui2_scrolltext.cpp | |
src/gui/gui2_advancedscrolltext.cpp | |
src/gui/gui2_button.cpp | |
src/gui/gui2_resizabledialog.cpp | |
src/gui/debugRenderer.cpp | |
src/gui/gui2_element.cpp | |
src/gui/gui2_keyvaluedisplay.cpp | |
src/gui/gui2_listbox.cpp | |
src/gui/gui2_scrollbar.cpp | |
src/gui/gui2_container.cpp | |
src/gui/gui2_panel.cpp | |
src/gui/gui2_overlay.cpp | |
src/spaceObjects/spaceStation.cpp | |
src/spaceObjects/spaceship.cpp | |
src/spaceObjects/wormHole.cpp | |
src/spaceObjects/spaceObject.cpp | |
src/spaceObjects/nebula.cpp | |
src/spaceObjects/explosionEffect.cpp | |
src/spaceObjects/cpuShip.cpp | |
src/spaceObjects/asteroid.cpp | |
src/spaceObjects/mine.cpp | |
src/spaceObjects/blackHole.cpp | |
src/spaceObjects/missileWeapon.cpp | |
src/spaceObjects/EMPMissile.cpp | |
src/spaceObjects/playerSpaceship.cpp | |
src/spaceObjects/beamEffect.cpp | |
src/spaceObjects/homingMissile.cpp | |
src/spaceObjects/hvli.cpp | |
src/spaceObjects/electricExplosionEffect.cpp | |
src/spaceObjects/supplyDrop.cpp | |
src/spaceObjects/warpJammer.cpp | |
src/spaceObjects/scanProbe.cpp | |
src/spaceObjects/nuke.cpp | |
src/spaceObjects/artifact.cpp | |
src/spaceObjects/shipTemplateBasedObject.cpp | |
src/spaceObjects/planet.cpp | |
src/spaceObjects/zone.cpp | |
src/spaceObjects/spaceshipParts/beamWeapon.cpp | |
src/spaceObjects/spaceshipParts/weaponTube.cpp | |
src/ai/fighterAI.cpp | |
src/ai/ai.cpp | |
src/ai/aiFactory.cpp | |
src/ai/missileVolleyAI.cpp | |
src/hardware/hardwareController.cpp | |
src/hardware/hardwareMappingEffects.cpp | |
src/hardware/hardwareOutputDevice.cpp | |
src/hardware/serialDriver.cpp | |
src/hardware/devices/dmx512SerialDevice.cpp | |
src/hardware/devices/enttecDMXProDevice.cpp | |
src/hardware/devices/sACNDMXDevice.cpp | |
src/hardware/devices/uDMXDevice.cpp | |
src/hardware/devices/virtualOutputDevice.cpp | |
src/hardware/devices/philipsHueDevice.cpp | |
) | |
if(WIN32) | |
list(APPEND SOURCES EmptyEpsilon.rc) | |
endif() | |
foreach(SP_SOURCE | |
src/soundManager.cpp | |
src/clipboard.cpp | |
src/postProcessManager.cpp | |
src/fixedSocket.cpp | |
src/input.cpp | |
src/tween.cpp | |
src/multiplayer_client.cpp | |
src/PlayerController.cpp | |
src/logging.cpp | |
src/random.cpp | |
src/gameEntity.cpp | |
src/multiplayer_server_scanner.cpp | |
src/networkRecorder.cpp | |
src/multiplayer_server.cpp | |
src/scriptInterfaceMagic.cpp | |
src/Renderable.cpp | |
src/Updatable.cpp | |
src/textureManager.cpp | |
src/collisionable.cpp | |
src/stringImproved.cpp | |
src/resources.cpp | |
src/scriptInterface.cpp | |
src/event.cpp | |
src/multiplayer.cpp | |
src/Box2D/Dynamics/Contacts/b2EdgeAndCircleContact.cpp | |
src/Box2D/Dynamics/Contacts/b2ContactSolver.cpp | |
src/Box2D/Dynamics/Contacts/b2ChainAndPolygonContact.cpp | |
src/Box2D/Dynamics/Contacts/b2CircleContact.cpp | |
src/Box2D/Dynamics/Contacts/b2PolygonAndCircleContact.cpp | |
src/Box2D/Dynamics/Contacts/b2EdgeAndPolygonContact.cpp | |
src/Box2D/Dynamics/Contacts/b2Contact.cpp | |
src/Box2D/Dynamics/Contacts/b2ChainAndCircleContact.cpp | |
src/Box2D/Dynamics/Contacts/b2PolygonContact.cpp | |
src/Box2D/Dynamics/Joints/b2MouseJoint.cpp | |
src/Box2D/Dynamics/Joints/b2MotorJoint.cpp | |
src/Box2D/Dynamics/Joints/b2PulleyJoint.cpp | |
src/Box2D/Dynamics/Joints/b2FrictionJoint.cpp | |
src/Box2D/Dynamics/Joints/b2Joint.cpp | |
src/Box2D/Dynamics/Joints/b2WheelJoint.cpp | |
src/Box2D/Dynamics/Joints/b2RopeJoint.cpp | |
src/Box2D/Dynamics/Joints/b2PrismaticJoint.cpp | |
src/Box2D/Dynamics/Joints/b2DistanceJoint.cpp | |
src/Box2D/Dynamics/Joints/b2WeldJoint.cpp | |
src/Box2D/Dynamics/Joints/b2RevoluteJoint.cpp | |
src/Box2D/Dynamics/Joints/b2GearJoint.cpp | |
src/Box2D/Dynamics/b2Fixture.cpp | |
src/Box2D/Dynamics/b2World.cpp | |
src/Box2D/Dynamics/b2Island.cpp | |
src/Box2D/Dynamics/b2Body.cpp | |
src/Box2D/Dynamics/b2ContactManager.cpp | |
src/Box2D/Dynamics/b2WorldCallbacks.cpp | |
src/Box2D/Rope/b2Rope.cpp | |
src/Box2D/Collision/b2CollidePolygon.cpp | |
src/Box2D/Collision/b2Distance.cpp | |
src/Box2D/Collision/b2CollideCircle.cpp | |
src/Box2D/Collision/Shapes/b2CircleShape.cpp | |
src/Box2D/Collision/Shapes/b2ChainShape.cpp | |
src/Box2D/Collision/Shapes/b2EdgeShape.cpp | |
src/Box2D/Collision/Shapes/b2PolygonShape.cpp | |
src/Box2D/Collision/b2TimeOfImpact.cpp | |
src/Box2D/Collision/b2DynamicTree.cpp | |
src/Box2D/Collision/b2BroadPhase.cpp | |
src/Box2D/Collision/b2CollideEdge.cpp | |
src/Box2D/Collision/b2Collision.cpp | |
src/Box2D/Common/b2BlockAllocator.cpp | |
src/Box2D/Common/b2StackAllocator.cpp | |
src/Box2D/Common/b2Math.cpp | |
src/Box2D/Common/b2Timer.cpp | |
src/Box2D/Common/b2Draw.cpp | |
src/Box2D/Common/b2Settings.cpp | |
src/httpServer.cpp | |
src/networkAudioStream.cpp | |
src/engine.cpp | |
src/windowManager.cpp | |
src/shaderManager.cpp | |
src/GL/glew.c | |
src/lua/lundump.c | |
src/lua/lmem.c | |
src/lua/lctype.c | |
src/lua/lparser.c | |
src/lua/lmathlib.c | |
src/lua/lbaselib.c | |
src/lua/ltm.c | |
src/lua/lstrlib.c | |
src/lua/lfunc.c | |
src/lua/ldo.c | |
src/lua/lcorolib.c | |
src/lua/lcode.c | |
src/lua/lapi.c | |
src/lua/lstate.c | |
src/lua/llex.c | |
src/lua/lopcodes.c | |
src/lua/lobject.c | |
src/lua/ldebug.c | |
src/lua/lstring.c | |
src/lua/ltable.c | |
src/lua/lzio.c | |
src/lua/ldblib.c | |
src/lua/ldump.c | |
src/lua/lvm.c | |
src/lua/loadlib.c | |
src/lua/lauxlib.c | |
src/lua/ltablib.c | |
src/lua/lgc.c | |
src/lua/lbitlib.c | |
src/json11/json11.cpp | |
) | |
list(APPEND SOURCES ${SERIOUS_PROTON_DIR}/${SP_SOURCE}) | |
endforeach() | |
add_definitions(-DWINDOW_TITLE="EmptyEpsilon") | |
add_definitions(-DVERSION_NUMBER=${CPACK_PACKAGE_VERSION_MAJOR}${CPACK_PACKAGE_VERSION_MINOR}${CPACK_PACKAGE_VERSION_PATCH}) | |
if(ENABLE_CRASH_LOGGER) | |
add_definitions(-DENABLE_CRASH_LOGGER) | |
if(WIN32) | |
link_directories(${DRMINGW_ROOT}/lib/) | |
endif() | |
endif() | |
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | |
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework OpenGL -framework Foundation") | |
endif() | |
add_executable(${EXECUTABLE_NAME} MACOSX_BUNDLE ${SOURCES}) | |
include_directories(${CMAKE_SOURCE_DIR}/src) | |
include_directories(${SERIOUS_PROTON_DIR}/src) | |
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) | |
## Setup SFML | |
cmake_policy(SET CMP0074 NEW) | |
set(SFML_ROOT "${SFML_DIR}") | |
find_package(SFML 2.3 REQUIRED system window graphics network audio) | |
include_directories(${SFML_INCLUDE_DIR}) | |
target_link_libraries(${EXECUTABLE_NAME} ${SFML_LIBRARIES}) | |
# Setup OpenGl | |
find_package(OpenGL REQUIRED) | |
include_directories(${OPENGL_INCLUDE_DIR}) | |
target_link_libraries(${EXECUTABLE_NAME} ${OPENGL_LIBRARIES}) | |
# Some magical Win 32 stuff | |
if(WIN32) | |
target_link_libraries(${EXECUTABLE_NAME} wsock32 iphlpapi) | |
if(ENABLE_CRASH_LOGGER) | |
include_directories(${DRMINGW_ROOT}/include/) | |
target_link_libraries(${EXECUTABLE_NAME} exchndl) | |
endif() | |
elseif(APPLE) | |
set_target_properties(${EXECUTABLE_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/osx/MacOSXBundleInfo.plist.in) | |
set_target_properties(${EXECUTABLE_NAME} PROPERTIES MACOSX_BUNDLE_ICON_FILE "${EXECUTABLE_NAME}.icns") | |
endif() | |
include(InstallRequiredSystemLibraries) | |
if(WIN32) | |
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -print-file-name=libstdc++-6.dll OUTPUT_VARIABLE MINGW_STDCPP_DLL OUTPUT_STRIP_TRAILING_WHITESPACE) | |
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -print-file-name=libgcc_s_sjlj-1.dll OUTPUT_VARIABLE MINGW_LIBGCC_DLL OUTPUT_STRIP_TRAILING_WHITESPACE) | |
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -print-file-name=libwinpthread-1.dll OUTPUT_VARIABLE MINGW_PTHREAD_DLL OUTPUT_STRIP_TRAILING_WHITESPACE) | |
install(FILES ${MINGW_STDCPP_DLL} ${MINGW_LIBGCC_DLL} ${MINGW_PTHREAD_DLL} DESTINATION .) | |
install(FILES /usr/i686-w64-mingw32/lib/libwinpthread-1.dll DESTINATION .) | |
install(FILES ${SFML_ROOT}/bin/OpenAL32.dll DESTINATION .) | |
install(FILES ${SFML_ROOT}/bin/libFLAC-8.dll DESTINATION .) | |
install(FILES ${SFML_ROOT}/bin/libjpeg-62.dll DESTINATION .) | |
install(FILES ${SFML_ROOT}/bin/libogg-0.dll DESTINATION .) | |
install(FILES ${SFML_ROOT}/bin/libvorbis-0.dll DESTINATION .) | |
install(FILES ${SFML_ROOT}/bin/libvorbisenc-2.dll DESTINATION .) | |
install(FILES ${SFML_ROOT}/bin/libvorbisfile-3.dll DESTINATION .) | |
install(FILES ${SFML_ROOT}/bin/sfml-audio-2.dll DESTINATION .) | |
install(FILES ${SFML_ROOT}/bin/sfml-graphics-2.dll DESTINATION .) | |
install(FILES ${SFML_ROOT}/bin/sfml-network-2.dll DESTINATION .) | |
install(FILES ${SFML_ROOT}/bin/sfml-system-2.dll DESTINATION .) | |
install(FILES ${SFML_ROOT}/bin/sfml-window-2.dll DESTINATION .) | |
if(ENABLE_CRASH_LOGGER) | |
install(FILES ${DRMINGW_ROOT}/bin/dbghelp.dll DESTINATION .) | |
install(FILES ${DRMINGW_ROOT}/bin/exchndl.dll DESTINATION .) | |
install(FILES ${DRMINGW_ROOT}/bin/mgwhelp.dll DESTINATION .) | |
install(FILES ${DRMINGW_ROOT}/bin/symsrv.dll DESTINATION .) | |
install(FILES ${DRMINGW_ROOT}/bin/symsrv.yes DESTINATION .) | |
endif() | |
install(DIRECTORY resources DESTINATION .) | |
install(DIRECTORY scripts DESTINATION .) | |
install(DIRECTORY packs DESTINATION .) | |
install(TARGETS ${EXECUTABLE_NAME} RUNTIME DESTINATION .) | |
elseif(APPLE) | |
install(FILES logo.icns DESTINATION "EmptyEpsilon.app/Contents/Resources" RENAME "${EXECUTABLE_NAME}.icns") | |
install(DIRECTORY resources DESTINATION "EmptyEpsilon.app/Contents/Resources") | |
install(DIRECTORY scripts DESTINATION "EmptyEpsilon.app/Contents/Resources") | |
install(DIRECTORY packs DESTINATION "EmptyEpsilon.app/Contents/Resources") | |
else() | |
include(GNUInstallDirs) | |
install(DIRECTORY resources DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/emptyepsilon/") | |
install(DIRECTORY scripts DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/emptyepsilon/") | |
install(DIRECTORY packs DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/emptyepsilon/") | |
install(TARGETS ${EXECUTABLE_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}) | |
endif() | |
find_package(PythonInterp) | |
if(PYTHONINTERP_FOUND) | |
add_custom_target(scriptdoc ALL ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/compile_script_docs.py ${CMAKE_BINARY_DIR}/script_reference.html WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} COMMENT "Building script reference documentation.") | |
install(FILES ${CMAKE_BINARY_DIR}/script_reference.html DESTINATION .) | |
endif() | |
set(CPACK_PACKAGE_EXECUTABLES ${EXECUTABLE_NAME}) | |
set(CPACK_GENERATOR "ZIP") | |
include(CPack) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cmake.configureOnOpen": true, | |
"cmake.configureSettings": { | |
"DRMINGW_ROOT" : "${workspaceFolder}/../drmingw-0.8.2-win32", | |
"SFML_DIR" : "${workspaceFolder}/../SFML-2.5.1/", | |
"SERIOUS_PROTON_DIR" : "${workspaceFolder}/../SeriousProton" | |
}, | |
"cmake.buildDirectory": "${workspaceFolder}/.bin/win", | |
"C_Cpp.default.configurationProvider": "vector-of-bool.cmake-tools", | |
"cmake.debugConfig": { | |
"externalConsole" : true, | |
"logging" : { | |
"engineLogging" : true, | |
"trace" : true, | |
"traceResponse" : true | |
}, | |
"MIMode": "gdb", | |
"miDebuggerPath": "${workspaceFolder}/../mingw32/bin/gdb.exe", | |
"environment": [{ | |
"name" : "PATH", | |
"value" : "${env:PATH};${workspaceFolder}/../SFML-2.5.1/include;${workspaceFolder}/../drmingw-0.8.2-win32/bin;${workspaceFolder}/../mingw32/bin;" | |
}], | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true | |
} | |
] | |
}, | |
"C_Cpp.configurationWarnings": "Disabled" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment