Skip to content
Merged
Changes from all commits
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
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ find_package(LIBSBML REQUIRED)


# detect zipper library if sources are not included
if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/zipper)
if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/submodules/zipper)

find_package(ZIPPER REQUIRED)

Expand Down Expand Up @@ -495,14 +495,14 @@ file(GLOB COMBINE_SOURCES
source_group(combine FILES ${COMBINE_SOURCES} ${COMBINE_HEADERS})

# if we have the zipper sources, include them directly
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/zipper)
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/src/zipper)
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/src)
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/submodules/zipper)
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/submodules/zipper/zipper)
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/submodules/zipper)

file(GLOB ZIPPER_SOURCES
file(GLOB_RECURSE ZIPPER_SOURCES
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/src
${CMAKE_CURRENT_SOURCE_DIR}/src/zipper/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/zipper/*.h
${CMAKE_CURRENT_SOURCE_DIR}/submodules/zipper/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/submodules/zipper/*.h
)

set(COMBINE_SOURCES ${COMBINE_SOURCES} ${ZIPPER_SOURCES})
Expand Down