Improved the CMake scripts for the examples.
This commit is contained in:
@@ -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}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user