source: CLRX/CLRadeonExtender/trunk/clhelper/CMakeLists.txt @ 3450

Last change on this file since 3450 was 3450, checked in by matszpk, 2 years ago

CLRadeonExtender: Add new library: CLRXCLHelper that facilitate creating binary/program for OpenCL. Use CLRXCLHelper in samples.

  • Property svn:mime-type set to text/plain
File size: 1.6 KB
Line 
1####
2#  CLRadeonExtender - Unofficial OpenCL Radeon Extensions Library
3#  Copyright (C) 2014-2017 Mateusz Szpakowski
4#
5#  This library is free software; you can redistribute it and/or
6#  modify it under the terms of the GNU Lesser General Public
7#  License as published by the Free Software Foundation; either
8#  version 2.1 of the License, or (at your option) any later version.
9#
10#  This library is distributed in the hope that it will be useful,
11#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13#  Lesser General Public License for more details.
14#
15#  You should have received a copy of the GNU Lesser General Public
16#  License along with this library; if not, write to the Free Software
17#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18####
19
20CMAKE_MINIMUM_REQUIRED(VERSION 2.8.1)
21
22SET(LIBCLHELPERSRC CLHelper.cpp)
23
24SET(LINK_LIBRARIES CLRXAmdAsm CLRXAmdBin CLRXUtils OpenCL)
25
26ADD_LIBRARY(CLRXCLHelper SHARED ${LIBCLHELPERSRC})
27
28TARGET_LINK_LIBRARIES(CLRXCLHelper ${LINK_LIBRARIES})
29SET_TARGET_PROPERTIES(CLRXCLHelper PROPERTIES VERSION ${CLRX_LIB_VERSION}
30        SOVERSION ${CLRX_MAJOR_VERSION})
31
32INSTALL(TARGETS CLRXCLHelper LIBRARY DESTINATION ${LIB_INSTALL_DIR}
33        ARCHIVE DESTINATION ${LIB_INSTALL_DIR} RUNTIME DESTINATION bin)
34
35IF(NOT NO_STATIC)
36    ADD_LIBRARY(CLRXCLHelperStatic STATIC ${LIBCLHELPERSRC})
37    SET_TARGET_OUTNAME(CLRXCLHelperStatic CLRXCLHelper)
38   
39    INSTALL(TARGETS CLRXCLHelperStatic ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
40            LIBRARY DESTINATION ${LIB_INSTALL_DIR})
41ENDIF(NOT NO_STATIC)
Note: See TracBrowser for help on using the repository browser.