Browse Source

Add build tools

master
Jake Wakeling 5 months ago
parent
commit
c5b6448f5b
4 changed files with 57 additions and 0 deletions
  1. 19
    0
      CMakeLists.txt
  2. 3
    0
      build/CMAKE_WIN64.bat
  3. 17
    0
      src/main.c
  4. 18
    0
      src/main.h

+ 19
- 0
CMakeLists.txt View File

@@ -0,0 +1,19 @@
# CMakeLists.txt
# CMakeLists file for OmegaARc

cmake_minimum_required(VERSION 3.9) # CMake Minimum Required Version
project(HexView) # Project
set(CMAKE_C_STANDARD 11) # C Standard

# Output Directories
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)

file(GLOB SOURCES src/* include/*) # Add Source Files
add_library(xv ${SOURCES}) # Build Target

set_property( # Visual Studio Startup Project
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY VS_STARTUP_PROJECT xv
)

+ 3
- 0
build/CMAKE_WIN64.bat View File

@@ -0,0 +1,3 @@
@echo off
cmake ../ -DCMAKE_GENERATOR_PLATFORM=x64
cmake --build . --config Release

+ 17
- 0
src/main.c View File

@@ -0,0 +1,17 @@
// main.c
// Main source file for HexView
// Copyright (c) 2019, Jakob Wakeling
// All rights reserved.

#define _CRT_SECURE_NO_WARNINGS

#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

int main(void) {
return 0;
}

+ 18
- 0
src/main.h View File

@@ -0,0 +1,18 @@
// main.h
// Main header file for HexView
// Copyright (c) 2019, Jakob Wakeling
// All rights reserved.

#ifndef MAIN_H
#define MAIN_H

#ifdef __cplusplus
extern "C" {
#endif



#ifdef __cplusplus
}
#endif
#endif // MAIN_H

Loading…
Cancel
Save