File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717install (FILES ${CMAKE_CURRENT_BINARY_DIR } /../daedalus.exe DESTINATION DaedalusX64)
1818endif ()
1919list (APPEND daed_libs)
20- set (daed_libs ${daed_libs} Shlwapi.lib Dsound.lib Xinput.lib uuid.lib PARENT_SCOPE )
20+ #set(daed_libs ${daed_libs} Shlwapi.lib Dsound.lib Xinput.lib uuid.lib PARENT_SCOPE)
21+ set (daed_libs ${daed_libs} shlwapi dsound xinput uuid PARENT_SCOPE )
2122set (plat_main SysPosix/main.cpp PARENT_SCOPE )
2223
2324file (GLOB DYNAMIC_LIBRARIES "${CMAKE_CURRENT_BINARY_DIR } /../*.dll" )
Original file line number Diff line number Diff line change 1+ # Tools/cmake/mingw-g++.cmake
2+
3+ # Cross-compiling to Windows
4+ set (CMAKE_SYSTEM_NAME Windows)
5+ set (CMAKE_SYSTEM_PROCESSOR x86_64)
6+
7+ set (TRIPLET x86_64-w64-mingw32)
8+
9+ # Custom cross root (change if you want to use /usr/x86_64-w64-mingw32)
10+ set (CROSS_ROOT /usr/${TRIPLET} )
11+
12+ set (CMAKE_INSTALL_PREFIX "${CROSS_ROOT} " )
13+
14+ set (CMAKE_C_COMPILER ${TRIPLET} -gcc-posix)
15+ set (CMAKE_CXX_COMPILER ${TRIPLET} -g++-posix)
16+ set (CMAKE_RC_COMPILER ${TRIPLET} -windres)
17+
18+ # Where to search for includes/libs for the target
19+ set (CMAKE_FIND_ROOT_PATH "${CROSS_ROOT} " )
20+
21+ set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
22+ set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
23+ set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
24+
25+
26+
27+
You can’t perform that action at this time.
0 commit comments