Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removed library build type explicit declaration (was empty anyways)
added correct link lib deps
  • Loading branch information
rondiplomatico committed Sep 9, 2015
commit 221e1e7a94758c4317ca964a3275a94448be756a
2 changes: 1 addition & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ SET( FIELDML_API_PUBLIC_HDRS
src/fieldml_api.h )

# Create library
add_library(fieldml-core ${LIBRARY_BUILD_TYPE} ${FIELDML_API_SRCS} ${FIELDML_API_PUBLIC_HDRS}
add_library(fieldml-core ${FIELDML_API_SRCS} ${FIELDML_API_PUBLIC_HDRS}
${FIELDML_API_PRIVATE_HDRS} ${LIBRARY_WIN32_XTRAS})
target_link_libraries(fieldml-core xml2)
target_compile_definitions(fieldml-core PRIVATE $<$<CONFIG:Debug>:DEBUG>)
Expand Down
5 changes: 3 additions & 2 deletions io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ SET( FIELDML_API_PUBLIC_HDRS
#INCLUDE_DIRECTORIES( ${FIELDML_API_PUBLIC_HDRS} ${HDF5_INCLUDE_DIRS} ${MPI_INCLUDE_DIRS} )

# Create library
add_library(fieldml-io ${LIBRARY_BUILD_TYPE} ${FIELDML_IO_API_SRCS} ${FIELDML_IO_API_PUBLIC_HDRS} ${FIELDML_IO_API_PRIVATE_HDRS} ${LIBRARY_WIN32_XTRAS} )
add_library(fieldml-io ${FIELDML_IO_API_SRCS} ${FIELDML_IO_API_PUBLIC_HDRS} ${FIELDML_IO_API_PRIVATE_HDRS} ${LIBRARY_WIN32_XTRAS} )
target_link_libraries(fieldml-io PUBLIC fieldml-core)
target_include_directories(fieldml-io PUBLIC
$<BUILD_INTERFACE:${fieldml_SOURCE_DIR}/core/src>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>)
Expand Down Expand Up @@ -101,7 +102,7 @@ endif()

# Install targets
if(WIN32 AND BUILD_SHARED_LIBS)
SET_TARGET_PROPERTIES(fieldml PROPERTIES IMPORT_SUFFIX _dll.lib)
SET_TARGET_PROPERTIES(fieldml-io PROPERTIES IMPORT_SUFFIX _dll.lib)
endif()

INSTALL(TARGETS fieldml-io
Expand Down