Author | Jakob Wakeling <[email protected]> |
Date | 2021-02-13 08:02:06 |
Commit | 9d8e220a1ebd2cffb52d9e8eee0ea1615f7b0769 |
Parent | 86c3d2a36595e908aa1302de78e54917dff22249 |
Add Windows build script
Diffstat
A | BuildWindows.bat | | | 4 | ++++ |
M | CMakeLists.txt | | | 2 | ++ |
2 files changed, 6 insertions, 0 deletions
diff --git a/BuildWindows.bat b/BuildWindows.bat new file mode 100644 index 0000000..592928c --- /dev/null +++ b/BuildWindows.bat @@ -0,0 +1,4 @@ +cmake -S "%~dp0\" -B "%~dp0\build" ^ + -DCMAKE_BUILD_TYPE:STRING=Release + +cmake --build "%~dp0\build" diff --git a/CMakeLists.txt b/CMakeLists.txt index 93b76e6..cfe3d2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.12) PROJECT(OBFI VERSION 1.0.3 LANGUAGES C) +SET(CMAKE_C_STANDARD 11) + SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin) ADD_COMPILE_DEFINITIONS(PROJECT_VERSION="${PROJECT_VERSION}")