Skip to content
Snippets Groups Projects
Commit 4ca60b27 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

app/CMakeLists.txt update

parent 593a0f3f
No related branches found
No related tags found
1 merge request!75app/CMakeLists.txt update
Pipeline #56707 failed
......@@ -25,5 +25,5 @@ if (netCDF_FOUND)
endif ()
add_subdirectory( src )
#add_subdirectory( app )
add_subdirectory( app )
#target_link_libraries(cdi PRIVATE NetCDF)
target_include_directories()
target_link_libraries()
add_executable(cdi
cdi.c printinfo.c
)
target_include_directories(cdi PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src>
$<INSTALL_INTERFACE:include
)
target_link_libraries(cdi PUBLIC cdilib)
target_compile_definitions(cdi PUBLIC HAVE_CONFIG_H)
#ifdef HAVE_CONFIG_H
#include "../src/config.h"
#include "config.h"
#endif
#include <inttypes.h>
......
......@@ -5,6 +5,8 @@
#define VERSION "@PROJECT_VERSION@"
#define CDI 1
#define HAVE_LIBGRIB 1
#define HAVE_LIBCGRIBEX 1
#define HAVE_LIBEXTRA 1
......
......@@ -137,10 +137,9 @@ list( APPEND cdi_src_files
zaxis.h
)
add_library(cdi
# SOURCES
add_library(cdilib
${cdi_src_files}
# INSTALL_HEADERS_LIST cdi.h
)
target_compile_definitions(cdi PUBLIC HAVE_CONFIG_H)
target_compile_definitions(cdilib PUBLIC HAVE_CONFIG_H)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment