-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a14bbb
commit 25dc17b
Showing
4 changed files
with
13 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
# asw | ||
|
||
A.D.S. Games SDL Wrapper | ||
A.D.S. Games SDL Wrapper. | ||
|
||
## Usage (CMAKE) | ||
|
||
### Add submodule | ||
This project started as a way to easily port allegro4 games to SDL2. Now it intends to make it easier to use SDL2 in C++. A primary focus is to allow easy compilation of games using emscripten as well, and has been throughly tested with it. | ||
|
||
``` | ||
mkdir lib | ||
git submodule add https://github.com/AdsGames/asw lib/asw | ||
``` | ||
|
||
### Add to CMakeLists.txt | ||
## Usage (CMAKE) | ||
|
||
``` | ||
set(ASW_HEADERS lib/asw) | ||
### Fetch Content | ||
|
||
target_include_directories( | ||
executable_name PRIVATE | ||
${ASW_HEADERS} | ||
```sh | ||
FetchContent_Declare( | ||
asw | ||
GIT_REPOSITORY https://github.com/adsgames/asw.git | ||
GIT_TAG <tag from latest version> | ||
) | ||
FetchContent_MakeAvailable(asw) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
* @copyright Copyright (c) 2023 | ||
* | ||
*/ | ||
|
||
#ifndef ASW_ASSETS_H | ||
#define ASW_ASSETS_H | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
* @copyright Copyright (c) 2023 | ||
* | ||
*/ | ||
|
||
#ifndef ASW_CORE_H | ||
#define ASW_CORE_H | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters