mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-26 19:00:18 -06:00
Add Boost requirement to CMake.
This commit is contained in:
parent
273648ea80
commit
34a7e8d62c
@ -92,6 +92,20 @@ IF (NOT GUILE_EXECUTABLE)
|
||||
MESSAGe (SEND_ERROR "The guile executable was not found, but is required. Please set GUILE_EXECUTABLE.")
|
||||
ENDIF (NOT GUILE_EXECUTABLE)
|
||||
|
||||
#BOOST
|
||||
SET (Boost_USE_STATIC_LIBS OFF)
|
||||
SET (Boost_USE_MULTITHREADED ON)
|
||||
SET (Boost_USE_STATIC_RUNTIME OFF)
|
||||
FIND_PACKAGE (Boost 1.50.0 REQUIRED COMPONENTS chrono date-time filesystem log program_options regex signals system test)
|
||||
|
||||
IF (Boost_FOUND)
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
add_executable(progname file1.cxx file2.cxx)
|
||||
target_link_libraries(progname ${Boost_LIBRARIES})
|
||||
ELSE (Boost_FOUND)
|
||||
MESSAGE (SEND_ERROR "Boost 1.50.0 or later is not installed, and is required. Please install it and ensure that the following libraries are built: chrono, date-time, filesystem, log, program_options, regex, signals, system, and test.")
|
||||
ENDIF (Boost_FOUND)
|
||||
|
||||
# ############################################################
|
||||
|
||||
# libdbi
|
||||
|
Loading…
Reference in New Issue
Block a user