@@ -47,12 +47,12 @@ if(UNIX)
4747 PUBLIC
4848 include
4949 ../config
50- ../deps/linux/amd64/gcc /Ogre/include/OGRE
51- ../deps/linux/amd64/gcc /Ogre/include/OIS
52- ../deps/linux/amd64/gcc /PagedGeometry/include/PagedGeometry
50+ ../deps/linux/amd64/gcc9 /Ogre/include/OGRE
51+ ../deps/linux/amd64/gcc9 /Ogre/include/OIS
52+ ../deps/linux/amd64/gcc9 /PagedGeometry/include
5353 ../deps/linux/amd64/all/fmod/include
54- ../deps/linux/amd64/gcc /zziplib/include
55- ../deps/linux/amd64/gcc /RakNet/include
54+ ../deps/linux/amd64/gcc9 /zziplib/include
55+ ../deps/linux/amd64/gcc9 /RakNet/include
5656 ../Game/include
5757 )
5858endif (UNIX )
@@ -88,10 +88,11 @@ if(UNIX)
8888 target_link_directories (
8989 Game
9090 PUBLIC
91- ../deps/linux/amd64/gcc/Ogre/bin/release
92- ../deps/linux/amd64/gcc/PagedGeometry/lib
93- ../deps/linux/amd64/all/fmod/bin
94- ../deps/linux/amd64/gcc/RakNet/bin
91+ ../deps/linux/amd64/gcc9/Ogre/lib
92+ ../deps/linux/amd64/gcc9/PagedGeometry/lib
93+ ../deps/linux/amd64/all/fmod/lib
94+ ../deps/linux/amd64/gcc9/zziplib/lib
95+ ../deps/linux/amd64/gcc9/RakNet/lib
9596 )
9697endif (UNIX )
9798
133134 src/MagixUnitManager.cpp
134135 src/MagixWorld.cpp
135136 src/main.cpp
136- src/movabletextoverlay .cpp
137- src/ogremagixApp .cpp
138- src/ogremagixFrameListener .cpp
137+ src/MovableTextOverlay .cpp
138+ src/OgreMagixApp .cpp
139+ src/OgreMagixFrameListener .cpp
139140 src/SoundManager.cpp
140141)
141142
@@ -189,6 +190,7 @@ if(UNIX)
189190 target_link_libraries (
190191 Game
191192 ${LIBS}
193+ fmod
192194 )
193195endif (UNIX )
194196
@@ -199,6 +201,10 @@ if(MINGW)
199201 set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--enable-stdcall-fixup" )
200202endif (MINGW )
201203
204+ if (UNIX )
205+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive" )
206+ endif (UNIX )
207+
202208if (MSVC10)
203209 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /TP" )
204210endif (MSVC10 )
@@ -235,17 +241,25 @@ endif(WIN32)
235241if (UNIX )
236242 file (
237243 GLOB DEPS
238- ../deps/linux/amd64/gcc /Ogre/bin/release /*
239- ../deps/linux/amd64/gcc /PagedGeometry/docs/LICENSE*
240- ../deps/linux/amd64/all/fmod/bin /*
241- ../deps/linux/amd64/gcc /RakNet/bin /*
244+ ../deps/linux/amd64/gcc9 /Ogre/lib /*
245+ ../deps/linux/amd64/gcc9 /PagedGeometry/docs/LICENSE*
246+ ../deps/linux/amd64/all/fmod/lib /*
247+ ../deps/linux/amd64/gcc9 /RakNet/lib /*
242248 )
243249 file (COPY ${DEPS} DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
244250endif (UNIX )
245251
246252#Copy data files
247253file (COPY ../data DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
248- file (GLOB CONFIG ../static/client/config/* )
254+
255+ if (WIN32 )
256+ file (GLOB CONFIG ../static/client/config/windows/* )
257+ endif (WIN32 )
258+
259+ if (UNIX )
260+ file (GLOB CONFIG ../static/client/config/linux/* )
261+ endif (UNIX )
262+
249263file (COPY ${CONFIG} DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
250264file (GLOB DAT ../static/client/default/* )
251265file (COPY ${DAT} DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
@@ -254,4 +268,5 @@ file(COPY ${DAT} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
254268install (TARGETS Game DESTINATION ${CMAKE_INSTALL_PREFIX} /bin/client)
255269install (FILES ${DEPS} DESTINATION ${CMAKE_INSTALL_PREFIX} /bin/client)
256270install (DIRECTORY ../data DESTINATION ${CMAKE_INSTALL_PREFIX} /bin/client)
257- install (FILES ${CONFIG} ${DAT} DESTINATION ${CMAKE_INSTALL_PREFIX} /bin/client)
271+ install (FILES ${CONFIG} ${DAT} DESTINATION ${CMAKE_INSTALL_PREFIX} /bin/client)
272+ install (DIRECTORY ../static/client/screenshots DESTINATION ${CMAKE_INSTALL_PREFIX} /bin/client)
0 commit comments