-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
31 lines (25 loc) · 1.45 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
29
30
31
# **************************************************************************
# * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
# * *
# * Author: The ALICE Off-line Project. *
# * Contributors are mentioned in the code where appropriate. *
# * *
# * Permission to use, copy, modify and distribute this software and its *
# * documentation strictly for non-commercial purposes is hereby granted *
# * without fee, provided that the above copyright notice appears in all *
# * copies and that both the copyright notice and this permission notice *
# * appear in the supporting documentation. The authors make no claims *
# * about the suitability of this software for any purpose. It is *
# * provided "as is" without express or implied warranty. *
# **************************************************************************
# Module include folder
cmake_minimum_required(VERSION 2.8)
project(hijing Fortran)
include_directories(.)
file(GLOB SOURCES "*.F" "hipyset/*.F")
add_library(HIJING SHARED ${SOURCES})
# Installation
install(TARGETS HIJING LIBRARY DESTINATION lib)
if(${CMAKE_SYSTEM} MATCHES Darwin)
set_target_properties(HIJING PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
endif(${CMAKE_SYSTEM} MATCHES Darwin)