2014-09-18 19:12:50 +00:00
|
|
|
|
2014-10-09 19:06:36 +00:00
|
|
|
# define build type
|
|
|
|
IF( DEFINED CMAKE_BUILD_TYPE )
|
|
|
|
SET( CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "Set to either \"Release\" or \"Debug\"" )
|
|
|
|
ELSE()
|
|
|
|
SET( CMAKE_BUILD_TYPE Release CACHE STRING "Set to either \"Release\" or \"Debug\"" )
|
|
|
|
ENDIF()
|
|
|
|
|
2014-09-18 19:12:50 +00:00
|
|
|
PROJECT(nf2ff CXX)
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
main.cpp
|
|
|
|
nf2ff.cpp
|
|
|
|
nf2ff_calc.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(HEADERS
|
|
|
|
nf2ff.h
|
|
|
|
nf2ff_calc.h
|
|
|
|
)
|
|
|
|
|
|
|
|
ADD_EXECUTABLE( nf2ff ${SOURCES} )
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES( nf2ff
|
|
|
|
tools
|
|
|
|
tinyxml
|
2015-05-04 18:01:23 +00:00
|
|
|
hdf5
|
|
|
|
hdf5_hl
|
2014-09-18 19:12:50 +00:00
|
|
|
${Boost_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
INSTALL(TARGETS nf2ff DESTINATION bin)
|
|
|
|
|
|
|
|
|
|
|
|
#TODO tarball, debug, release
|