Skip to content

Commit

Permalink
Refactoring of cmake for eacirc-streams
Browse files Browse the repository at this point in the history
  • Loading branch information
mhajas committed Apr 14, 2017
1 parent a580377 commit b64aba6
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,37 @@ else()
message(FATAL_ERROR "unsuported compiler id:${CMAKE_CXX_COMPILER_ID}, path: ${CMAKE_CXX_COMPILER}")
endif()

add_executable(eacirc-streams main.cc
generator
stream.h
streams.cc

# === Provide sources as library
add_library(eacirc-streams-lib STATIC
stream
streams.h
streams.cc
)

set_target_properties(eacirc-streams-lib PROPERTIES
LINKER_LANGUAGE CXX
)

target_link_libraries(eacirc-streams-lib eacirc-core)


# === eacirc generator executable
add_executable(eacirc-streams main.cc generator)

set_target_properties(eacirc-streams PROPERTIES
LINKER_LANGUAGE CXX
)


add_subdirectory(eacirc-core)

add_subdirectory(streams/estream)
add_subdirectory(streams/sha3)
add_subdirectory(streams/block)

target_link_libraries(eacirc-streams eacirc-core)
target_link_libraries(eacirc-streams eacirc-core eacirc-streams-lib)

build_stream(eacirc-streams estream)
build_stream(eacirc-streams sha3)
build_stream(eacirc-streams block)

# === Provide sources as Library ===
add_library(eacirc-streams-lib STATIC
stream
streams.h
streams.cc
)

set_target_properties(eacirc-streams-lib PROPERTIES
LINKER_LANGUAGE CXX
)

target_link_libraries(eacirc-streams-lib eacirc-core)

0 comments on commit b64aba6

Please sign in to comment.