Skip to content

Commit

Permalink
Minor revisions for ch 7, r 7
Browse files Browse the repository at this point in the history
robertodr committed May 31, 2018
1 parent e01a8e0 commit f0620f0
Showing 2 changed files with 11 additions and 14 deletions.
9 changes: 3 additions & 6 deletions chapter-07/recipe-07/cxx-example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -7,12 +7,9 @@ set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

include(GNUInstallDirs)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR})
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR})

# defines targets and sources
add_subdirectory(src)
16 changes: 8 additions & 8 deletions chapter-07/recipe-07/cxx-example/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
add_executable(example main.cpp)
add_executable(automata main.cpp)

add_subdirectory(evolution)
add_subdirectory(initial)
add_subdirectory(io)
add_subdirectory(parser)

target_link_libraries(
example
conversion
evolution
initial
io
parser
target_link_libraries(automata
PRIVATE
conversion
evolution
initial
io
parser
)

0 comments on commit f0620f0

Please sign in to comment.