https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 05a8cda47164acbdb3283f91b880ed51690fc56b authored by Dmitri Naumov on 05 January 2016, 11:16:07 UTC
Update changelog.
Tip revision: 05a8cda
CMakeLists.txt
GET_SOURCE_FILES(SOURCES)

list(APPEND SOURCES "${CMAKE_CURRENT_BINARY_DIR}/BuildInfo.cpp" BuildInfo.h)

# Create the library
add_library(BaseLib STATIC ${SOURCES})

set_target_properties(BaseLib PROPERTIES LINKER_LANGUAGE CXX)

target_link_libraries(BaseLib INTERFACE
	logog
	${Boost_LIBRARIES}
)

if(MSVC)
	target_link_libraries(BaseLib INTERFACE WinMM) # needed for timeGetTime
endif()

if(TARGET Eigen)
	add_dependencies(BaseLib Eigen)
endif()
if(TARGET Boost)
	add_dependencies(BaseLib Boost)
endif()
back to top