Skip to content

Commit f703e0c

Browse files
committed
Add CMake build
1 parent ca40b72 commit f703e0c

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Example CMake command line to create project build files:
2+
#
3+
# *** Windows ***
4+
# cmake -G "Visual Studio 17 2022" -A Win32 -B ../StateMachineCompactBuild -S .
5+
#
6+
# *** Linux ***
7+
# cmake -G "Unix Makefiles" -B ../StateMachineCompactBuild -S .
8+
9+
# Specify the minimum CMake version required
10+
cmake_minimum_required(VERSION 3.10)
11+
12+
# Project name and language (C++)
13+
project(StateMachineCompact VERSION 1.0 LANGUAGES CXX)
14+
15+
# Collect all .cpp and *.h source files in the current directory
16+
file(GLOB SOURCES "${CMAKE_SOURCE_DIR}/*.cpp" "${CMAKE_SOURCE_DIR}/*.h")
17+
18+
# Add an executable target
19+
add_executable(StateMachineCompactApp ${SOURCES})
20+

stdafx.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "targetver.h"
99

1010
#include <stdio.h>
11-
#include <tchar.h>
1211

1312

1413

0 commit comments

Comments
 (0)