]> git.lyx.org Git - lyx.git/blob - development/cmake/boost/libs/filesystem/CMakeLists.txt
some more small changes to speed up the compilation time by merged files
[lyx.git] / development / cmake / boost / libs / filesystem / CMakeLists.txt
1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
3 #
4 # Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
5 #
6
7 project(boost_filesystem)
8
9 set(boost_filesystem_sources
10         exception.cpp
11         operations.cpp
12         path.cpp
13         portability.cpp
14 )
15
16 lyx_add_path(boost_filesystem_sources ${TOP_SRC_DIR}/boost/libs/filesystem/src)
17
18 if(NOT MERGE_FILES)
19         add_library(boost_filesystem STATIC ${boost_filesystem_sources})
20 else(NOT MERGE_FILES)
21         add_definitions(-D_WIN32_WINNT=0x500)
22         lyx_merge_files(${CMAKE_CURRENT_BINARY_DIR}/boost_filesystem_allinone.C boost_filesystem_sources)
23         add_library(boost_filesystem STATIC ${CMAKE_CURRENT_BINARY_DIR}/boost_filesystem_allinone.C)
24 endif(NOT MERGE_FILES)
25