build different apps for windows and linux
project(iotivity-lite-apps)
+if(UNIX)
add_executable(simpleserver
${PROJECT_SOURCE_DIR}/simpleserver.c
${iotivity-lite_SOURCE_DIR}/api/oc_introspection.c
@@ -37,6 +38,25 @@ if(EXISTS ${PROJECT_SOURCE_DIR}/device_builder_server.c)
)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/device_builder_server_creds)
endif()
+elseif(WIN32)
+ add_executable(simpleserver
+ ${PROJECT_SOURCE_DIR}/simpleserver_windows.c
+ ${iotivity-lite_SOURCE_DIR}/api/oc_introspection.c
+ )
+ target_link_libraries(simpleserver
+ iotivity-server-client
+ )
+ file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/simpleserver_creds)
+
+ add_executable(simpleclient
+ ${PROJECT_SOURCE_DIR}/simpleclient_windows.c
+ ${iotivity-lite_SOURCE_DIR}/api/oc_introspection.c
+ )
+ target_link_libraries(simpleclient
+ iotivity-client
+ )
+ file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/simpleclient_creds)
+endif()
# copy credentials, used by example applications.
add_custom_target(copy-pki-certs ALL
