|
|
@ -13,12 +13,12 @@ if(${srcdir} STREQUAL ${bindir}) |
|
|
|
" Please remove them.") |
|
|
|
" Please remove them.") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
project(odm CXX) |
|
|
|
project(odm C CXX) |
|
|
|
set(CMAKE_CXX_STANDARD 20) |
|
|
|
set(CMAKE_CXX_STANDARD 20) |
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON) |
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON) |
|
|
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) |
|
|
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) |
|
|
|
|
|
|
|
|
|
|
|
include_directories(include) |
|
|
|
include_directories(include GSW-C) |
|
|
|
add_compile_options(-Wall) |
|
|
|
add_compile_options(-Wall) |
|
|
|
|
|
|
|
|
|
|
|
# Dwarf-4 support check |
|
|
|
# Dwarf-4 support check |
|
|
@ -28,4 +28,7 @@ if(COMPILER_SUPPORTS_DWARF4 AND (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUIL |
|
|
|
add_compile_options(-gdwarf-4) |
|
|
|
add_compile_options(-gdwarf-4) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_library(teos STATIC GSW-C/gsw_oceanographic_toolbox.c GSW-C/gsw_saar.c) |
|
|
|
|
|
|
|
set_target_properties(teos PROPERTIES LINKER_LANGUAGE C) |
|
|
|
|
|
|
|
|
|
|
|
add_subdirectory(src) |
|
|
|
add_subdirectory(src) |
|
|
|