Skip to content

Commit

Permalink
Rename common helium modules and directory for one
Browse files Browse the repository at this point in the history
  • Loading branch information
akindyakov committed Sep 27, 2013
1 parent a0ecd13 commit 32ff4aa
Show file tree
Hide file tree
Showing 38 changed files with 147 additions and 138 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ INCLUDE( heliumResourceIncludes )
# -------------------------------------------------------------------
# ------ modules building -------

ADD_SUBDIRECTORY ( ${HELIUM_MODULES_DIR}/util )
ADD_SUBDIRECTORY ( ${HELIUM_MODULES_DIR}/userInput )
ADD_SUBDIRECTORY ( ${HELIUM_MODULES_DIR}/heliumSceneObjects )
ADD_SUBDIRECTORY ( ${HELIUM_MODULES_DIR}/heliumScreenObjects )
ADD_SUBDIRECTORY ( ${HELIUM_MODULES_DIR}/heliumGameCore )
ADD_SUBDIRECTORY ( ${HELIUM_MODULES_DIR}/heliumMainMenu )
ADD_SUBDIRECTORY ( ${HELIUM_MODULES_DIR}/heliumUtil )
ADD_SUBDIRECTORY ( ${HELIUM_MODULES_DIR}/heliumUserInput )
ADD_SUBDIRECTORY ( ${HELIUM_MODULES_DIR}/helium_3D_Object )
ADD_SUBDIRECTORY ( ${HELIUM_MODULES_DIR}/helium_2D_Object )
ADD_SUBDIRECTORY ( ${HELIUM_MODULES_DIR}/heliumGameCore )
ADD_SUBDIRECTORY ( ${HELIUM_MODULES_DIR}/heliumMainMenu )

# -------------------------------------------------------------------

Expand Down
16 changes: 8 additions & 8 deletions cmake/heliumIncludes.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ ENDIF( )

INCLUDE_DIRECTORIES ( ${HELIUM_MODULES_DIR}/heliumGameCore/include
${HELIUM_MODULES_DIR}/heliumMainMenu/include
${HELIUM_MODULES_DIR}/heliumSceneObjects/include
${HELIUM_MODULES_DIR}/heliumScreenObjects/include
${HELIUM_MODULES_DIR}/util/include
${HELIUM_MODULES_DIR}/userInput/include
${HELIUM_MODULES_DIR}/helium_3D_Object/include
${HELIUM_MODULES_DIR}/helium_2D_Object/include
${HELIUM_MODULES_DIR}/heliumUtil/include
${HELIUM_MODULES_DIR}/heliumUserInput/include
${POLYCODE_CORE_INCLUDE_DIR}
${POLYCODE_MODULES_INCLUDE_DIR}
${SDL_INCLUDE_DIR}
Expand All @@ -65,10 +65,10 @@ INCLUDE_DIRECTORIES ( ${HELIUM_MODULES_DIR}/heliumGameCore/include

LINK_DIRECTORIES ( ${HELIUM_MODULES_DIR}/heliumGameCore )
LINK_DIRECTORIES ( ${HELIUM_MODULES_DIR}/heliumMainMenu )
LINK_DIRECTORIES ( ${HELIUM_MODULES_DIR}/heliumSceneObjects )
LINK_DIRECTORIES ( ${HELIUM_MODULES_DIR}/heliumScreenObjects )
LINK_DIRECTORIES ( ${HELIUM_MODULES_DIR}/util )
LINK_DIRECTORIES ( ${HELIUM_MODULES_DIR}/userInput )
LINK_DIRECTORIES ( ${HELIUM_MODULES_DIR}/helium_3D_Object )
LINK_DIRECTORIES ( ${HELIUM_MODULES_DIR}/helium_2D_Object )
LINK_DIRECTORIES ( ${HELIUM_MODULES_DIR}/heliumUtil )
LINK_DIRECTORIES ( ${HELIUM_MODULES_DIR}/heliumUserInput )

ADD_DEFINITIONS(-DUNICODE -D_UNICODE)

Expand Down
4 changes: 2 additions & 2 deletions modules/heliumGameCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ ADD_LIBRARY ( heliumGameCore STATIC

TARGET_LINK_LIBRARIES ( heliumGameCore
${LIB_POLYCODE}
heliumSceneObjects
heliumScreenObjects
helium_2D_Object
helium_3D_Object
heliumUserInput
)

27 changes: 0 additions & 27 deletions modules/heliumSceneObjects/CMakeLists.txt

This file was deleted.

32 changes: 0 additions & 32 deletions modules/heliumScreenObjects/CMakeLists.txt

This file was deleted.

33 changes: 33 additions & 0 deletions modules/heliumUserInput/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

MESSAGE( STATUS "HELIUM USER INPUT MODULE:" )

PROJECT( heliumUserInput )

INCLUDE( heliumIncludes )

SET( HELIUM_USER_INPUT_PROJECT_DIR ${HELIUM_MODULES_DIR}/heliumUserInput )

SET ( heliumUserInput_SRCS
${HELIUM_USER_INPUT_PROJECT_DIR}/src/heliumPreparedKeyHandlers.cpp
${HELIUM_USER_INPUT_PROJECT_DIR}/src/heliumInputDipather.cpp
${HELIUM_USER_INPUT_PROJECT_DIR}/src/heliumPreparedMouseHandlers.cpp
)

SET ( heliumUserInput_HDRS
${HELIUM_USER_INPUT_PROJECT_DIR}/include/heliumPreparedKeyHandlers.h
${HELIUM_USER_INPUT_PROJECT_DIR}/include/heliumInputDipather.h
${HELIUM_USER_INPUT_PROJECT_DIR}/include/heliumUserInputHandler.h
${HELIUM_USER_INPUT_PROJECT_DIR}/include/heliumPreparedMouseHandlers.h
)

ADD_LIBRARY ( heliumUserInput STATIC
${heliumUserInput_SRCS}
${heliumUserInput_HDRS}
)

TARGET_LINK_LIBRARIES ( heliumUserInput
${LIB_POLYCODE}
helium_2D_Object
)

File renamed without changes.
26 changes: 26 additions & 0 deletions modules/heliumUtil/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

MESSAGE(STATUS "MODULE: << heliumUtil >>")

PROJECT( heliumUtil )

INCLUDE( heliumIncludes )

SET( HELIUM_UTIL_PROJECT_DIR ${HELIUM_MODULES_DIR}/heliumUtil )

SET ( heliumGameCore_SRCS
${HELIUM_UTIL_PROJECT_DIR}/src/pathGlobal.cpp
${HELIUM_UTIL_PROJECT_DIR}/src/debugTools.cpp
)

SET ( heliumGameCore_HDRS
${HELIUM_UTIL_PROJECT_DIR}/include/pathGlobal.h
${HELIUM_UTIL_PROJECT_DIR}/include/mainMacro.h
${HELIUM_UTIL_PROJECT_DIR}/include/debugTools.h
)

ADD_LIBRARY ( heliumUtil STATIC
${heliumGameCore_SRCS}
${heliumGameCore_HDRS}
)

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef HELIUM_PATH_GLOBAL_INCLUDED
#define HELIUM_PATH_GLOBAL_INCLUDED

#include <Polycode.h>
#include "Polycode.h"

static const Polycode::String g_helium_resource_path("helium_resource");

Expand Down
File renamed without changes.
File renamed without changes.
34 changes: 34 additions & 0 deletions modules/helium_2D_Object/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

MESSAGE(STATUS "HELIUM MODULE: SCREEN OBJECTS")

PROJECT( helium_2D_Object )

INCLUDE( heliumIncludes )

SET( HELIUM_2D_OBJECT_DIR ${HELIUM_MODULES_DIR}/helium_2D_Object )

SET ( heliumScreenObjects_SRCS
${HELIUM_2D_OBJECT_DIR}/src/heliumScreenConsole.cpp
${HELIUM_2D_OBJECT_DIR}/src/heliumScreenObjects.cpp
${HELIUM_2D_OBJECT_DIR}/src/heliumScreenButton.cpp
${HELIUM_2D_OBJECT_DIR}/src/heliumPreparedScreenButton.cpp
)

SET ( heliumScreenObjects_HDRS
${HELIUM_2D_OBJECT_DIR}/include/heliumScreenConsole.h
${HELIUM_2D_OBJECT_DIR}/include/heliumScreenObjects.h
${HELIUM_2D_OBJECT_DIR}/include/heliumScreenButton.h
${HELIUM_2D_OBJECT_DIR}/include/heliumPreparedScreenButton.h
)

ADD_LIBRARY ( helium_2D_Object STATIC
${heliumScreenObjects_SRCS}
${heliumScreenbjects_HDRS}
)

TARGET_LINK_LIBRARIES ( helium_2D_Object
${LIB_POLYCODE}
helium_2D_Object
)

29 changes: 29 additions & 0 deletions modules/helium_3D_Object/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

MESSAGE(STATUS "HELIUM MODULE: 3D OBJECTS WORLD")

PROJECT( helium_3D_Object )

INCLUDE( heliumIncludes )

SET( HELIUM_3D_OBJECT_DIR ${HELIUM_MODULES_DIR}/helium_3D_Object )

SET ( helium_3D_Object_SRCS
${HELIUM_3D_OBJECT_DIR}/src/heliumSceneObjects.cpp
${HELIUM_3D_OBJECT_DIR}/src/heliumPreparedSceneObjects.cpp
)

SET ( helium_3D_Object_HDRS
${HELIUM_3D_OBJECT_DIR}/include/heliumSceneObjects.h
${HELIUM_3D_OBJECT_DIR}/include/heliumPreparedSceneObjects.h
)

ADD_LIBRARY ( helium_3D_Object STATIC
${helium_3D_Object_SRCS}
${helium_3D_Object_HDRS}
)

TARGET_LINK_LIBRARIES ( helium_3D_Object
${LIB_POLYCODE}
)

31 changes: 0 additions & 31 deletions modules/userInput/CMakeLists.txt

This file was deleted.

24 changes: 0 additions & 24 deletions modules/util/CMakeLists.txt

This file was deleted.

11 changes: 6 additions & 5 deletions tests/firstKeyControl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

MESSAGE(STATUS "\"FIRST KEY CONTROL TEST\" GENERATING")
MESSAGE(STATUS "TEST: <<firstKeyControl>> GENERATING")

PROJECT( firstKeyControl )

Expand Down Expand Up @@ -29,12 +29,13 @@ ADD_EXECUTABLE ( firstKeyControl
)

IF(WIN32)
set_target_properties( firstKeyControl PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:windows")
set_target_properties( firstKeyControl PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:windows")
set_target_properties( firstKeyControl PROPERTIES COMPILE_DEFINITIONS_DEBUG "_WINDOWS")
set_target_properties( firstKeyControl PROPERTIES LINK_FLAGS_RELWITHDEBINFO "/SUBSYSTEM:windows")
set_target_properties( firstKeyControl PROPERTIES COMPILE_DEFINITIONS_RELWITHDEBINFO "_WINDOWS")
set_target_properties( firstKeyControl PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:windows")
set_target_properties( firstKeyControl PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:windows")
set_target_properties( firstKeyControl PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:windows")

SET_TARGET_PROPERTIES( firstKeyControl PROPERTIES COMPILE_DEFINITIONS _UNICODE,UNICODE)
ENDIF(WIN32)

Expand All @@ -43,8 +44,8 @@ TARGET_LINK_LIBRARIES ( firstKeyControl
heliumGameCore
heliumUserInput
heliumUtil
heliumScreenObjects
heliumSceneObjects
helium_2D_Object
helium_3D_Object
)

INSTALL ( TARGETS firstKeyControl
Expand Down
4 changes: 2 additions & 2 deletions tests/sceneWorldDevelop/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ TARGET_LINK_LIBRARIES ( sceneWorldDevelop
heliumGameCore
heliumUserInput
heliumUtil
heliumScreenObjects
heliumSceneObjects
helium_2D_Object
helium_3D_Object
)

INSTALL ( TARGETS sceneWorldDevelop
Expand Down

0 comments on commit 32ff4aa

Please sign in to comment.