File: CMakeLists.txt

package info (click to toggle)
nifticlib 3.0.1-9.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,640 kB
  • sloc: ansic: 31,214; sh: 941; makefile: 460; csh: 138; python: 88; tcl: 42
file content (19 lines) | stat: -rw-r--r-- 737 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This trivial CMakeLists.txt file stands alone from the
# rest of the build system.  It is intended represent
# a down-stream package that depends on the NIFIT
# development libraries.
#
# to configure this stand-alone package
# run "cmake -DNIFTI_DIR:PATH=${build_or_install_dir}/NIFTI ${THIS_SOURCE_DIR}"
#

cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)

project(real_easy)
find_package(NIFTI 2.1.0 CONFIG REQUIRED)

add_executable(real_easy nifti1_read_write.c)
target_link_libraries(real_easy PUBLIC ${NIFTI_PACKAGE_PREFIX}NIFTI::${NIFTI_PACKAGE_PREFIX}niftiio)

add_executable(nifti_cdf_program nifti_cdf_program.c)
target_link_libraries(nifti_cdf_program PUBLIC ${NIFTI_PACKAGE_PREFIX}NIFTI::${NIFTI_PACKAGE_PREFIX}nifticdf)