Update CMakeLists.txt

This commit is contained in:
zerodefect 2018-01-30 12:11:32 +00:00 committed by GitHub
parent af1b54e268
commit da8aef4810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -52,6 +52,11 @@ if(AMQP-CPP_LINUX_TCP)
add_subdirectory(src/linux_tcp) add_subdirectory(src/linux_tcp)
endif() endif()
# potentially build the examples
if(AMQP-CPP_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
# settings for specific compilers # settings for specific compilers
# ------------------------------------------------------------------------------------------------------ # ------------------------------------------------------------------------------------------------------
@ -93,10 +98,6 @@ else()
) )
endif() endif()
if(AMQP-CPP_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
# copy header files # copy header files
install(DIRECTORY include/amqpcpp/ DESTINATION include/amqpcpp install(DIRECTORY include/amqpcpp/ DESTINATION include/amqpcpp
FILES_MATCHING PATTERN "*.h") FILES_MATCHING PATTERN "*.h")