X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=CMakeLists.txt;h=b507ffec64a3b522ea6f62e32739d729c33b95ee;hb=8d45019f2b1ac74108ae4589333680158fee32d5;hp=661e5493ff9f699c145ea82d39cc11afe5653156;hpb=f5b46b288b69fd97186ed860309a62208b7cf90f;p=lugaru.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 661e549..b507ffe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ set(SRCDIR "${CMAKE_CURRENT_SOURCE_DIR}/Source") ### CMake config set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 --std=c++11") -set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wno-parentheses -g -pg --std=c++11") +set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wno-parentheses -pedantic -g -pg --std=c++11") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall -Wno-parentheses -O2 -std=c++11") if(NOT CMAKE_INSTALL_PREFIX AND WIN32) @@ -32,8 +32,11 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") ### Sources set(LUGARU_SRCS + ${SRCDIR}/main.cpp ${SRCDIR}/Frustum.cpp ${SRCDIR}/Account.cpp + ${SRCDIR}/ConsoleCmds.cpp + ${SRCDIR}/Dialog.cpp ${SRCDIR}/Game.cpp ${SRCDIR}/GameDraw.cpp ${SRCDIR}/GameInitDispose.cpp @@ -53,10 +56,9 @@ set(LUGARU_SRCS ${SRCDIR}/Terrain.cpp ${SRCDIR}/Texture.cpp ${SRCDIR}/Text.cpp - ${SRCDIR}/TGALoader.cpp + ${SRCDIR}/ImageIO.cpp ${SRCDIR}/unpack.c ${SRCDIR}/Weapons.cpp - ${SRCDIR}/OpenGL_Windows.cpp ${SRCDIR}/openal_wrapper.cpp ${SRCDIR}/Input.cpp ${SRCDIR}/Settings.cpp @@ -64,11 +66,14 @@ set(LUGARU_SRCS ${SRCDIR}/Animation.cpp ${SRCDIR}/Sounds.cpp ${SRCDIR}/Awards.cpp + ${SRCDIR}/Utils/Folders.cpp ) set(LUGARU_H ${SRCDIR}/Frustum.h ${SRCDIR}/Account.h + ${SRCDIR}/ConsoleCmds.h + ${SRCDIR}/Dialog.h ${SRCDIR}/Game.h ${SRCDIR}/Lights.h ${SRCDIR}/Menu.h @@ -81,7 +86,7 @@ set(LUGARU_H ${SRCDIR}/Skeleton.h ${SRCDIR}/Skybox.h ${SRCDIR}/Sprite.h - ${SRCDIR}/TGALoader.h + ${SRCDIR}/ImageIO.h ${SRCDIR}/Terrain.h ${SRCDIR}/Texture.h ${SRCDIR}/Text.h @@ -89,6 +94,7 @@ set(LUGARU_H ${SRCDIR}/Input.h ${SRCDIR}/binio.h ${SRCDIR}/openal_wrapper.h + ${SRCDIR}/optionparser.h ${SRCDIR}/gamegl.h ${SRCDIR}/glstubs.h ${SRCDIR}/private.h @@ -96,6 +102,7 @@ set(LUGARU_H ${SRCDIR}/Stereo.h ${SRCDIR}/Animation.h ${SRCDIR}/Sounds.h + ${SRCDIR}/Utils/Folders.h ) if(UNIX)