[2579] | 1 | # |
---|
| 2 | # ORXONOX - the hottest 3D action shooter ever to exist |
---|
| 3 | # > www.orxonox.net < |
---|
| 4 | # |
---|
| 5 | # |
---|
| 6 | # License notice: |
---|
| 7 | # |
---|
| 8 | # This program is free software; you can redistribute it and/or |
---|
| 9 | # modify it under the terms of the GNU General Public License |
---|
| 10 | # as published by the Free Software Foundation; either version 2 |
---|
| 11 | # of the License, or (at your option) any later version. |
---|
| 12 | # |
---|
| 13 | # This program is distributed in the hope that it will be useful, |
---|
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 16 | # GNU General Public License for more details. |
---|
| 17 | # |
---|
| 18 | # You should have received a copy of the GNU General Public License |
---|
| 19 | # along with this program; if not, write to the Free Software |
---|
| 20 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
| 21 | # |
---|
| 22 | # Author: |
---|
| 23 | # Reto Grieder |
---|
| 24 | # Co-authors: |
---|
| 25 | # ... |
---|
| 26 | # |
---|
| 27 | |
---|
[2582] | 28 | ###### Default Compiler/Linker Options ########## |
---|
| 29 | # Most people use GCC to compile orxonox, so use that as default |
---|
| 30 | |
---|
| 31 | SET(CMAKE_C_FLAGS "$ENV{CFLAGS} ${ORXONOX_WARNING_FLAGS} -fPIC") |
---|
| 32 | SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} ${ORXONOX_WARNING_FLAGS} -fPIC") |
---|
| 33 | # These flags are added to the flags above |
---|
| 34 | SET(CMAKE_C_FLAGS_DEBUG " -g -ggdb") |
---|
| 35 | SET(CMAKE_CXX_FLAGS_DEBUG " -g -ggdb") |
---|
| 36 | SET(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG") |
---|
| 37 | SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG") |
---|
| 38 | SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -ggdb -DNDEBUG") |
---|
| 39 | SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -ggdb -DNDEBUG") |
---|
| 40 | SET(CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG") |
---|
| 41 | SET(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG") |
---|
| 42 | |
---|
| 43 | SET(CMAKE_LD_FLAGS "$ENV{LDFLAGS}") |
---|
| 44 | SET(CMAKE_EXE_LINKER_FLAGS " --no-undefined") |
---|
| 45 | SET(CMAKE_SHARED_LINKER_FLAGS " --no-undefined") |
---|
| 46 | SET(CMAKE_MODULE_LINKER_FLAGS " --no-undefined") |
---|