[go: up one dir, main page]

Menu

[f7210c]: / local / CMakeLists.txt  Maximize  Restore  History

Download this file

25 lines (22 with data), 812 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
############################################################################
# local/CMakeLists.txt
#
# CMake file which compiles and links all .cpp files in local/ with STXXL.
#
# Part of the STXXL. See http://stxxl.sourceforge.net
#
# Copyright (C) 2013 Timo Bingmann <tb@panthema.net>
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
############################################################################
# find all .cpp files in current directory
file(GLOB source_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cpp")
# compile and link
foreach(file ${source_files})
# remove .cpp
string(REGEX REPLACE "\\.cpp$" "" file ${file})
# call macro
stxxl_build_tool(${file})
endforeach()