Improved the CMake scripts for the examples.

This commit is contained in:
Nathan Osman
2015-07-16 11:24:35 -07:00
parent c2889434c0
commit c4cc5968c9
3 changed files with 15 additions and 17 deletions

View File

@@ -2,17 +2,12 @@ set(SRC
main.cpp
)
add_executable(fileserver WIN32 ${SRC})
add_executable(fileserver ${SRC})
target_link_libraries(fileserver qhttpengine)
set_target_properties(fileserver PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}"
)
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
DESTINATION "${EXAMPLES_INSTALL_DIR}"
)
install(TARGETS fileserver
RUNTIME DESTINATION "${EXAMPLES_INSTALL_DIR}/fileserver"
RUNTIME DESTINATION ${EXAMPLES_BIN_DIR}
)