Skip to content

Commit

Permalink
CMake Initial Pass
Browse files Browse the repository at this point in the history
This adds CMake into the tools folders. At this time it is able to create a functioning VS project in an empty folder. It does not work well enough yet to replace modifying the projects by hand but that's the goal. It also hasn't been tested in other environments.
  • Loading branch information
greenfire27 committed Dec 20, 2023
1 parent 8c10deb commit 2845ea7
Show file tree
Hide file tree
Showing 13 changed files with 1,177 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cmake_minimum_required (VERSION 3.6.0)

set(TORQUE_APP_NAME "Torque2D")

project(${TORQUE_APP_NAME}
VERSION 4.0.0.0
)

add_subdirectory(tools/CMake)
8 changes: 8 additions & 0 deletions tools/CMake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include(basics.cmake)

setupVersionNumbers()

# the main engine, should come last
include(torque2d.cmake)

#setupPackaging()
Binary file added tools/CMake/Torque 2D.ico
Binary file not shown.
110 changes: 110 additions & 0 deletions tools/CMake/Torque 2D.rc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "windows.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (United States) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)

/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_TORQUE2D ICON "Torque 2D.ico"


#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE
BEGIN
"resource.h\0"
END

2 TEXTINCLUDE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END

3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END

#endif // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 4,0,0,0
PRODUCTVERSION 4,0,0,0
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "Torque Game Engines"
VALUE "FileDescription", "Torque 2D: Rocket Edition"
VALUE "FileVersion", "4, 0, 0, 0"
VALUE "InternalName", "Torque 2D"
VALUE "LegalCopyright", "Copyright (c) 2021 Torque Game Engines"
VALUE "OriginalFilename", "Torque2D.exe"
VALUE "ProductName", "Torque 2D"
VALUE "ProductVersion", "4, 0, 0, 0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END

#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

0 comments on commit 2845ea7

Please sign in to comment.