https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: c13ceb5dbc546139331f81e65e2df7be1af0be7e authored by Christoph Lehmann on 13 April 2016, 12:35:51 UTC
Merge pull request #1128 from chleh/cleanup-geotype
Tip revision: c13ceb5
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
)

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