-
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
07a83d0
commit fd95a52
Showing
2 changed files
with
63 additions
and
57 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,13 +1,13 @@ | ||
cmake_minimum_required(VERSION 3.0) | ||
project(DumbSThreeMHeaderEditor) | ||
project(dstmhe) | ||
|
||
set(CMAKE_C_STANDARD 90) | ||
set(CMAKE_C_EXTENSIONS OFF) | ||
|
||
add_executable(DumbSThreeMHeaderEditor main.c) | ||
add_executable(dstmhe main.c) | ||
# https://stackoverflow.com/a/50882216 | ||
if(MSVC) | ||
target_compile_options(DumbSThreeMHeaderEditor PRIVATE /W4 /WX) | ||
else() | ||
target_compile_options(DumbSThreeMHeaderEditor PRIVATE -Wall -Wextra -Wpedantic -Werror -march=native) | ||
target_compile_options(dstmhe PRIVATE /W4 /WX) | ||
elseif(GNU) | ||
target_compile_options(dstmhe PRIVATE -Wall -Wextra -Wpedantic -Werror -march=native) | ||
endif() |
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