Browse Source

Update build scripts

tags/0.1.0
Jake Wakeling 5 months ago
parent
commit
0b5dee2e1f
2 changed files with 6 additions and 21 deletions
  1. 5
    17
      CMakeLists.txt
  2. 1
    4
      build/CMAKE_WIN64.bat

+ 5
- 17
CMakeLists.txt View File

@@ -1,7 +1,5 @@
# CMakeLists.txt
# CMakeLists file for OmegaARc
# Copyright (c) 2019, Jake Wakeling
# All rights reserved.

cmake_minimum_required(VERSION 3.9) # CMake Minimum Required Version
project(OmegaARc) # Project
@@ -9,26 +7,16 @@ set(CMAKE_C_STANDARD 11) # C Standard

# Output Directories
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR}/bin)

link_directories( # Library Directories
lib/x64/
)

add_library(oar # Build Target
src/oar.c
)

target_include_directories( # Target Include Directories
oar PUBLIC
include/
)
target_link_libraries( # Target Libraries
oar
)
add_library(oar src/oar.c) # Build Target

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

+ 1
- 4
build/CMAKE_WIN64.bat View File

@@ -1,6 +1,3 @@
@echo off

cmake ../ -DCMAKE_GENERATOR_PLATFORM=x64
cmake --build . --config Release

rmdir ..\bin\Release
cmake --build . --config Release

Loading…
Cancel
Save