You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
set(EXENAME odm)
|
|
|
|
|
|
|
|
find_library(netcdf netcdf REQUIRED)
|
|
|
|
find_package(OpenMP REQUIRED)
|
|
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
|
|
|
|
|
|
|
|
include_directories(../michlib/michlib)
|
|
|
|
|
|
|
|
file(GLOB srcs *.cpp)
|
|
|
|
add_executable(${EXENAME} ${srcs})
|
|
|
|
target_link_libraries(${EXENAME} ${linker_options} ${netcdf} OpenMP::OpenMP_CXX teos)
|
|
|
|
set_target_properties(${EXENAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
|
|
install(TARGETS ${EXENAME})
|