-
Notifications
You must be signed in to change notification settings - Fork 39
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
Showing
26 changed files
with
6,410 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# - CODA-OSS CMake Build script. | ||
# | ||
# Author: Scott A. Colcord | ||
|
||
cmake_minimum_required(VERSION 3.14) | ||
project(coda-oss) | ||
|
||
project(coda-oss) | ||
|
||
set(CMAKE_CXX_STANDARD 20) | ||
set(CXX_STANDARD_REQUIRED true) | ||
|
||
if (EXISTS "${CMAKE_BINARY_DIR}/conanbuildinfo.cmake") | ||
# build and package with conan | ||
include("${CMAKE_BINARY_DIR}/conanbuildinfo.cmake") | ||
conan_basic_setup() | ||
|
||
include("${CMAKE_BINARY_DIR}/conan_paths.cmake") | ||
endif() | ||
|
||
if (${CMAKE_PROJECT_NAME} STREQUAL coda-oss) | ||
# this is the top level project | ||
|
||
# Always turn on "warnings as errors" to avoid lots of (meaningless?) build output; | ||
# we'll dial-back warnings as necessary. | ||
if (MSVC) | ||
# set warning level to /W3 | ||
string(REGEX REPLACE "/W[0-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") | ||
string(REGEX REPLACE "/W[0-4]" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") | ||
add_compile_options(/std:c++20) | ||
elseif (UNIX) | ||
set(CMAKE_C_COMPILER gcc-10) | ||
set(CMAKE_CXX_COMPILER g++-10) | ||
add_compile_options( | ||
-Wno-deprecated | ||
-Wno-unused-value | ||
-Wno-unused-but-set-variable | ||
) | ||
add_compile_options(-std=c++20) | ||
endif() | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") | ||
include(CodaBuild) | ||
|
||
coda_initialize_build() | ||
|
||
# install our cmake build modules for downstream use | ||
install(DIRECTORY "cmake/" | ||
DESTINATION "${CODA_STD_PROJECT_LIB_DIR}/cmake/" | ||
FILES_MATCHING PATTERN "*.cmake") | ||
endif() | ||
|
||
add_subdirectory("modules") | ||
|
||
# generate package config, with the following paths exported | ||
set(JARS_DIR ${CODA_STD_PROJECT_LIB_DIR} CACHE INTERNAL | ||
"path to installed jars, needed by downstream projects") | ||
set(SWIG_INCLUDE_DIR "${CODA_STD_PROJECT_INCLUDE_DIR}/swig" CACHE INTERNAL | ||
"path to installed SWIG includes, needed by downstream projects") | ||
coda_generate_package_config(JARS_DIR SWIG_INCLUDE_DIR) |
370 changes: 370 additions & 0 deletions
370
externals/nitro/externals/coda-oss/UnitTest/UnitTest.vcxproj
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.