forked from issp-center-dev/HPhi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (25 loc) · 1.37 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# include guard
cmake_minimum_required(VERSION 2.8.0 )
add_definitions(-D_HPhi)
if(${CMAKE_PROJECT_NAME} STREQUAL "Project")
message(FATAL_ERROR "cmake should be executed not for 'src' subdirectory, but for the top directory of HPhi.")
endif(${CMAKE_PROJECT_NAME} STREQUAL "Project")
add_executable(greenr2k greenr2k.F90)
add_executable(cTPQ cTPQ.F90)
target_link_libraries(greenr2k ${LAPACK_LIBRARIES})
install(TARGETS greenr2k RUNTIME DESTINATION bin)
#
# Scripts
#
configure_file(wout2geom.sh wout2geom.sh COPYONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/wout2geom.sh DESTINATION bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
configure_file(respack2wan90.py respack2wan90.py COPYONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/respack2wan90.py DESTINATION bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
configure_file(histgram.sh histgram.sh COPYONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/histgram.sh DESTINATION bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
configure_file(AveSSrand.py AveSSrand.py COPYONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/AveSSrand.py DESTINATION bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)